I sure can.
Here is the code related to my first post.
`//
/*!
*
*/
//
/* ========================================================================= /
#ifndef COM_H_INCLUDED / prevents compiler from double- /
#define COM_H_INCLUDED / processing this header file /
/ ========================================================================= /
#ifdef __cplusplus
extern “C” {
#endif
/ ========================================================================= */
/* === library/ api includes =============================================== */
#include <stdbool.h>
#include <stdint.h>
/* === application includes ================================================ */
#include “COM_conf.h”
/* === public macros ======================================================= */
/* === public types ======================================================== */
typedef enum {
I_COM_TE_ERR_NONE,
I_COM_TE_ERR_LASTENTRY
} I_COM_TE_ERROR;
typedef enum {
I_COM_TE_CON_NONE,
I_COM_TE_CON_GUI,
I_COM_TE_CON_MC,
I_COM_TE_CON_WDC,
I_COM_TE_CON_LASTENTRY
} I_COM_TE_CONNECTION;
typedef enum{
I_COM_TE_PRIO_NONE,
I_COM_TE_PRIO_LOW,
I_COM_TE_PRIO_MID,
I_COM_TE_PRIO_HIGH,
I_COM_TE_PRIO_LASTENTRY
} I_COM_TE_PRIORITY;
/* define function callback type */
typedef void (iCom_Cb_t)(I_COM_TE_CONNECTION const comConnection, / Calling connection /
void * comData); / data to be returned */
/* === public variables ==================================================== */
typedef enum {
I_COM_TE_TEST_NONE,
I_COM_TE_TEST_LASTENTRY
}I_COM_TE_TEST;
/* === public functions (interfaces) ======================================= /
I_COM_TE_ERROR iCOM_send( I_COM_TE_CONNECTION const comConnection, / sent through this connection /
I_COM_TE_PRIORITY const comPriority, / priority of message /
void * const comData, / data to be sent /
uint8_t * const comDataSize); / data size */
bool iCOM_registerCallback(iCom_Cb_t comCallback); /* callback function to register */
/* ========================================================================= /
#ifdef __cplusplus
}
#endif
/ ========================================================================= /
#endif / COM_H_INCLUDED /
/ ========================================================================= */
/************************ </ end of COM.h > ***************************/
`