2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* util.h */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* This file is part of Drummer. */
|
|
|
|
/* */
|
|
|
|
/* Drummer is free software: you can redistribute it and/or modify it */
|
|
|
|
/* under the terms of the GNU General Public License as published by */
|
|
|
|
/* the Free Software Foundation, either version 3 of the License, or */
|
|
|
|
/* (at your option) any later version. */
|
|
|
|
/* */
|
|
|
|
/* Drummer is distributed in the hope that it will be useful, */
|
|
|
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
|
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
|
|
/* GNU General Public License for more details. */
|
|
|
|
/* */
|
|
|
|
/* You should have received a copy of the GNU General Public License */
|
|
|
|
/* along with Drummer. If not, see <https://www.gnu.org/licenses/>. */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
|
|
|
|
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* Includes */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef _UTILS_H_
|
|
|
|
#define _UTILS_H_
|
|
|
|
|
|
|
|
//#include "???"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* Global definitions */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
//typedef struct DRT_Drummer_URIS
|
|
|
|
//{
|
|
|
|
//} DRT_Drummer_URIS;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* DRD DATA & API definition */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
# ifdef _UTILS_C_
|
|
|
|
# define DRD_UTL_DATA
|
|
|
|
# define DRD_UTL_API
|
|
|
|
# else
|
|
|
|
# define DRD_UTL_DATA extern
|
|
|
|
# define DRD_UTL_API extern
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-21 20:16:18 +02:00
|
|
|
/* Public Data */
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-21 20:16:18 +02:00
|
|
|
/* Public Prototypes */
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* DR_Kit_Id_Convert */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
DRD_UTL_API DRT_Status DR_Kit_Id_Convert( uint8_t *, uint8_t *, uint8_t *, DRT_Kit_Id);
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* DR_Bank_Program_Id_Convert */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
DRD_UTL_API DRT_Status DR_Bank_Program_Id_Convert( DRT_Kit_Id *, uint8_t, uint8_t, uint8_t);
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
# ifdef _UTILS_C_
|
|
|
|
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-21 20:16:18 +02:00
|
|
|
/* Private Definitions */
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
#define DRD_MODULE_NAME "utl"
|
|
|
|
#define LGD_MODULE_NAME "utl"
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* Private Prototypes */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-21 20:16:18 +02:00
|
|
|
/* Post Private Definitions */
|
2024-04-14 16:17:19 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
# else // ifdef _UTILS_C_
|
2024-04-14 16:17:19 +02:00
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
/* Public Prototypes */
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-21 20:16:18 +02:00
|
|
|
# endif // ifdef _UTILS_C_
|
2024-04-14 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#endif // ifndef _UTILS_H_
|
|
|
|
|