|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
56 #ifndef FOXBMS__DATABASE_H_
57 #define FOXBMS__DATABASE_H_
70 #define GET_MACRO(_1, _2, _3, _4, NAME, ...) NAME
72 #define DATA_READ_DATA(...) \
75 DATA_Read_4_DataBlocks, \
76 DATA_Read_3_DataBlocks, \
77 DATA_Read_2_DataBlocks, \
78 DATA_Read_1_DataBlock, \
82 #define DATA_WRITE_DATA(...) \
85 DATA_Write_4_DataBlocks, \
86 DATA_Write_3_DataBlocks, \
87 DATA_Write_2_DataBlocks, \
88 DATA_Write_1_DataBlock, \
174 void *pDataFromSender0,
175 void *pDataFromSender1,
176 void *pDataFromSender2);
190 void *pDataFromSender0,
191 void *pDataFromSender1,
192 void *pDataFromSender2,
193 void *pDataFromSender3);
241 void *pDataToReceiver0,
242 void *pDataToReceiver1,
243 void *pDataToReceiver2,
244 void *pDataToReceiver3);
Implementation of the tasks used by the system, headers.
STD_RETURN_TYPE_e DATA_Read_4_DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1, void *pDataToReceiver2, void *pDataToReceiver3)
Reads a datablock in database by value.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
STD_RETURN_TYPE_e DATA_Read_2_DataBlocks(void *pDataToReceiver0, void *pDataToReceiver1)
Reads a datablock in database by value.
enum DATA_BLOCK_ACCESS_TYPE DATA_BLOCK_ACCESS_TYPE_e
data block access types (read or write)
STD_RETURN_TYPE_e DATA_Write_2_DataBlocks(void *pDataFromSender0, void *pDataFromSender1)
Stores a datablock in database.
STD_RETURN_TYPE_e DATA_Write_4_DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2, void *pDataFromSender3)
Stores a datablock in database.
bool DATA_DatabaseEntryUpdatedAtLeastOnce(void *pDatabaseEntry)
Checks if passed database entry has been updated at least once.
bool DATA_DatabaseEntryUpdatedRecently(void *pDatabaseEntry, uint32_t timeInterval)
Checks if passed database entry has been updated within the last time interval.
STD_RETURN_TYPE_e DATA_Init(void)
Initialization of database manager.
STD_RETURN_TYPE_e DATA_Write_1_DataBlock(void *pDataFromSender0)
Stores a datablock in database.
void DATA_Task(void)
trigger of database manager
STD_RETURN_TYPE_e DATA_Read_1_DataBlock(void *pDataToReceiver0)
Reads a datablock in database by value.
void DATA_DummyFunction(void)
Dummy void function of the database module.
STD_RETURN_TYPE_e DATA_Write_3_DataBlocks(void *pDataFromSender0, void *pDataFromSender1, void *pDataFromSender2)
Stores a datablock in database.
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)
bool DATA_DatabaseEntryUpdatedWithinInterval(void *pDatabaseEntry, uint32_t timeInterval)
Checks if passed database entry has been periodically updated within the time interval.
Database configuration header.