56 #ifndef FOXBMS__DATABASE_H_
57 #define FOXBMS__DATABASE_H_
71 #define DATA_MAX_ENTRIES_PER_ACCESS (4u)
74 #define GET_MACRO(_1, _2, _3, _4, NAME, ...) NAME
76 #define DATA_READ_DATA(...) \
79 DATA_Read_4_DataBlocks, \
80 DATA_Read_3_DataBlocks, \
81 DATA_Read_2_DataBlocks, \
82 DATA_Read_1_DataBlock, \
86 #define DATA_WRITE_DATA(...) \
89 DATA_Write_4_DataBlocks, \
90 DATA_Write_3_DataBlocks, \
91 DATA_Write_2_DataBlocks, \
92 DATA_Write_1_DataBlock, \
105 #define DATA_DUMMY_VALUE_UINT8_T_ALTERNATING_BIT_PATTERN ((uint8_t)0xAAu)
189 void *pDataFromSender0,
190 void *pDataFromSender1,
191 void *pDataFromSender2);
205 void *pDataFromSender0,
206 void *pDataFromSender1,
207 void *pDataFromSender2,
208 void *pDataFromSender3);
256 void *pDataToReceiver0,
257 void *pDataToReceiver1,
258 void *pDataToReceiver2,
259 void *pDataToReceiver3);
STD_RETURN_TYPE_e DATA_Write_4_DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2, void *pDataFromSender3)
Stores a datablock in database.
void DATA_Task(void)
trigger of database manager
enum DATA_BLOCK_ACCESS_TYPE DATA_BLOCK_ACCESS_TYPE_e
data block access types (read or write)
void DATA_DummyFunction(void)
Dummy void function of the database module.
STD_RETURN_TYPE_e DATA_Read_1_DataBlock(void *pDataToReceiver0)
Reads a datablock in database by value.
STD_RETURN_TYPE_e DATA_Read_3_DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1, void *pDataToReceiver2)
Reads a datablock in database by value.
DATA_BLOCK_ACCESS_TYPE
data block access types (read or write)
STD_RETURN_TYPE_e DATA_Write_1_DataBlock(void *pDataFromSender0)
Stores a datablock in database.
void DATA_ExecuteDataBIST(void)
Executes a built-in self-test for the database module.
struct DATA_QUEUE_MESSAGE DATA_QUEUE_MESSAGE_s
#define DATA_MAX_ENTRIES_PER_ACCESS
STD_RETURN_TYPE_e DATA_Read_2_DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1)
Reads a datablock in database by value.
STD_RETURN_TYPE_e DATA_Write_3_DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2)
Stores a datablock in database.
STD_RETURN_TYPE_e DATA_Init(void)
Initialization of database manager.
STD_RETURN_TYPE_e DATA_Write_2_DataBlocks(void *pDataFromSender0, void *pDataFromSender1)
Stores a datablock in database.
STD_RETURN_TYPE_e DATA_Read_4_DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1, void *pDataToReceiver2, void *pDataToReceiver3)
Reads a datablock in database by value.
Database configuration header.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
Declaration of the OS wrapper interface.
DATA_BLOCK_ACCESS_TYPE_e accesstype
void * pDatabaseEntry[DATA_MAX_ENTRIES_PER_ACCESS]