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

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

Go to the source code of this file.

Data Structures

struct  HIERODULE_USB_Wrapper
 Struct that keeps variables for the ring buffer and a pointer to the transmission end callback routine. More...
 

Functions

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
 Extern declaration for the wrapper instance 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.h.