Hierodule 1.6.2
Utility module set for STM32 MCUs
Loading...
Searching...
No Matches
hierodule_usb.c File Reference

: Source file for the USB module. More...

Go to the source code of this file.

Functions

void AppendToBuffer (uint8_t byte)
 Appends a byte to the RX ring buffer.
 
uint8_t HIERODULE_USB_GetNextByte (void)
 Fetches the next byte in the RX ring buffer.
 
void HIERODULE_USB_InitWrapper (uint16_t RX_BufferSize, void(*TC_Handler)(void))
 Initializes the wrapper for the USB peripheral.
 
void HIERODULE_USB_ReleaseWrapper (void)
 De-initializes the wrapper for the USB peripheral.
 
void HIERODULE_USB_TransmitPackage (uint8_t *TX_Buffer, uint32_t Size)
 Sets up the data to be transmitted.
 
void HIERODULE_USB_Receive_Callback (uint8_t *Buf, uint32_t *Len)
 Callback function that updates the ring buffer and invokes TC_Handler if it's not NULL.
 

Variables

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

Detailed Description

Author
: ushumgigal
Attention
: Copyrighted (2024) by ushumgigal under MIT License, a copy of which may be found in the root folder of the repository.

Definition in file hierodule_usb.c.