ConOpSys V2970
P004.07
ANVILEX control operating system
|
MODBUS request FIFO class. More...
#include <MODBUS_Request_FIFO.h>
Public Member Functions | |
TMODBUS_Request_FIFO () | |
Class constructor method. More... | |
~TMODBUS_Request_FIFO () | |
Class destructor method. More... | |
BOOL | Is_Empty () |
Returns empty buffer status. More... | |
VOID | Push (U8 u8_Value) |
Push data into buffer. More... | |
BOOL | Pop (U8 *u8_Value, F32 *f32_Interval) |
Pop data from buffer. More... | |
Public Attributes | |
U8 | u8_Data [16] = { (U8)0x00 } |
Data buffer. More... | |
U64 | u64_Timestamp [16] = { (U64)0 } |
Timestamp buffer. More... | |
BOOL | bool_Status [16] = { (BOOL)false } |
Status code buffer. More... | |
U32 | u32_Push_Index = (U32)0 |
Push end index. More... | |
U32 | u32_Pop_Index = (U32)0 |
Pop end index. More... | |
Private Attributes | |
U64 | u64_Last_Pop_Timestamp = (U64)0 |
Last pop operation timestamp. More... | |
BOOL | bool_Overflow = (BOOL)false |
Overflow flag. More... | |
MODBUS request FIFO class.
TMODBUS_Request_FIFO::TMODBUS_Request_FIFO | ( | ) |
Class constructor method.
TMODBUS_Request_FIFO::~TMODBUS_Request_FIFO | ( | ) |
Class destructor method.
BOOL TMODBUS_Request_FIFO::Is_Empty | ( | ) |
Returns empty buffer status.
false | - Buffer is not empty |
true | - Buffer is empty |
References bool_Status, and u32_Pop_Index.
Pop data from buffer.
[out] | *u8_Value | - Poped value from the buffer |
[out] | *f32_Interval | - Time interval value |
false | - Buffer is empty, no data poped |
true | - Data successfull poped |
References bool_Status, false, TTIMER2_STM32F429::Get_Actual_Time_U64(), THigh_Precision_Timer_Base::Get_Delta_Time(), Increment_Overflowed(), object_Delay_Timer, u32_Pop_Index, u64_Last_Pop_Timestamp, u64_Timestamp, and u8_Data.
Push data into buffer.
[in] | u8_Value | - U8 value to push into buffer |
References bool_Overflow, bool_Status, TTIMER2_STM32F429::Get_Actual_Time_U64(), Increment_Overflowed(), object_Delay_Timer, u32_Push_Index, u64_Timestamp, and u8_Data.
Status code buffer.
Referenced by Is_Empty(), Pop(), and Push().
Pop end index.
Referenced by Is_Empty(), and Pop().
Last pop operation timestamp.
Referenced by Pop().