Hierodule 1.6.2
Utility module set for STM32 MCUs
Loading...
Searching...
No Matches

Elements of the module that are confined to the scope of the compilation unit. More...

Functions

void AppendToBuffer (uint8_t byte)
 Appends a byte to the RX ring buffer.
 

Variables

HIERODULE_USB_Wrapper Wrapper
 Actual declaration for the Wrapper in the source file.
 

Detailed Description

The instance of the wrapper is declared here, an extern declaration exists in the header file.

Function Documentation

◆ AppendToBuffer()

void AppendToBuffer ( uint8_t byte)
Parameters
byteByte to be appended.
Returns
none

Self-explanatory code, nothing to elaborate.

Definition at line 34 of file hierodule_usb.c.

35{
37
40
43}
HIERODULE_USB_Wrapper Wrapper
Actual declaration for the Wrapper in the source file.
uint8_t * RX_Buffer
The ring buffer where the data received is appended.
uint32_t RX_New
Number of new bytes in the ring buffer.
uint16_t RX_BufferSize
Number of elements in the ring buffer.
uint32_t RX_Index
Index of next-byte-to-be-received in the ring buffer.

References HIERODULE_USB_Wrapper::RX_Buffer, HIERODULE_USB_Wrapper::RX_BufferSize, HIERODULE_USB_Wrapper::RX_Index, HIERODULE_USB_Wrapper::RX_New, and Wrapper.

Referenced by HIERODULE_USB_Receive_Callback().

Variable Documentation

◆ Wrapper