134 lines
4.6 KiB
C
134 lines
4.6 KiB
C
|
/*----------------------------------------------------------------------------*/
|
||
|
/* 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/>. */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Includes */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
#ifndef _UTILS_H_
|
||
|
#define _UTILS_H_
|
||
|
|
||
|
//#include "???"
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Global definitions */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
//typedef struct DRT_Drummer_URIS
|
||
|
//{
|
||
|
//} DRT_Drummer_URIS;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# ifdef _UTILS_C_
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Private Definitions */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
#define DRD_MODULE_NAME "utl"
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Private Prototypes */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* DR_Kit_Id_Convert */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
DRT_Status DR_Kit_Id_Convert( uint8_t *, uint8_t *, uint8_t *, DRT_Kit_Id);
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* DR_Bank_Program_Id_Convert */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
DRT_Status DR_Bank_Program_Id_Convert( DRT_Kit_Id *, uint8_t, uint8_t, uint8_t);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Post Private Definitions */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# else // ifdef _UTILS_C_
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* Public Prototypes */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* DR_Kit_Id_Convert */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
extern DRT_Status DR_Kit_Id_Convert( uint8_t *, uint8_t *, uint8_t *, DRT_Kit_Id);
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
/* DR_Bank_Program_Id_Convert */
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
extern DRT_Status DR_Bank_Program_Id_Convert( DRT_Kit_Id *, uint8_t, uint8_t, uint8_t);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# endif // ifndef _UTILS_C_
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*----------------------------------------------------------------------------*/
|
||
|
|
||
|
#endif // ifndef _UTILS_H_
|
||
|
|