57 #ifndef FOXBMS__DATABASE_H_
58 #define FOXBMS__DATABASE_H_
72 #define DATA_MAX_ENTRIES_PER_ACCESS (4u)
74 #define DATA_ENTRY_0 (0u)
75 #define DATA_ENTRY_1 (1u)
76 #define DATA_ENTRY_2 (2u)
77 #define DATA_ENTRY_3 (3u)
81 #define GET_MACRO(_1, _2, _3, _4, NAME, ...) (NAME)
83 #define DATA_READ_DATA(...) \
86 DATA_Read4DataBlocks, \
87 DATA_Read3DataBlocks, \
88 DATA_Read2DataBlocks, \
89 DATA_Read1DataBlock, \
93 #define DATA_WRITE_DATA(...) \
96 DATA_Write4DataBlocks, \
97 DATA_Write3DataBlocks, \
98 DATA_Write2DataBlocks, \
99 DATA_Write1DataBlock, \
100 DATA_DummyFunction) \
112 #define DATA_DUMMY_VALUE_UINT8_T_ALTERNATING_BIT_PATTERN ((uint8_t)0xAAu)
209 void *pDataFromSender0,
210 void *pDataFromSender1,
211 void *pDataFromSender2,
212 void *pDataFromSender3);
260 void *pDataToReceiver0,
261 void *pDataToReceiver1,
262 void *pDataToReceiver2,
263 void *pDataToReceiver3);
STD_RETURN_TYPE_e DATA_Write4DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2, void *pDataFromSender3)
Stores four data blocks in database.
DATA_BLOCK_ACCESS_TYPE_e
data block access types (read or write)
void DATA_Task(void)
trigger of database manager
STD_RETURN_TYPE_e DATA_Read2DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1)
Reads two data blocks in database by value.
STD_RETURN_TYPE_e DATA_Read1DataBlock(void *pDataToReceiver0)
Reads one data block in database by value.
void DATA_DummyFunction(void)
Dummy void function of the database module.
STD_RETURN_TYPE_e DATA_Write1DataBlock(void *pDataFromSender0)
Stores one data block in database.
STD_RETURN_TYPE_e DATA_Read3DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1, void *pDataToReceiver2)
Reads three data blocks in database by value.
STD_RETURN_TYPE_e DATA_Write3DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2)
Stores three data blocks in database.
void DATA_ExecuteDataBist(void)
Executes a built-in self-test for the database module.
STD_RETURN_TYPE_e DATA_Read4DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1, void *pDataToReceiver2, void *pDataToReceiver3)
Reads four data blocks in database by value.
#define DATA_MAX_ENTRIES_PER_ACCESS
STD_RETURN_TYPE_e DATA_Write2DataBlocks(void *pDataFromSender0, void *pDataFromSender1)
Stores two data blocks in database.
STD_RETURN_TYPE_e DATA_Initialize(void)
Initialization of database manager.
Database configuration header.
Declaration of the OS wrapper interface.
DATA_BLOCK_ACCESS_TYPE_e accessType