4.4.1.1.2 Functions
BUFFER_RETURN_CODE_t CIRCBUF_Enqueue (CIRCULAR_BUFFER_t *buffer, uint8_t data)
Adds input data to circular buffer if there is space available.
BUFFER_RETURN_CODE_t CIRCBUF_Dequeue (CIRCULAR_BUFFER_t *buffer, uint8_t *data)
Pulls data from the circular buffer if it's available.
bool CIRCBUF_Empty (CIRCULAR_BUFFER_t *buffer)
Checks if the circular buffer is empty.
bool CIRCBUF_Full (CIRCULAR_BUFFER_t *buffer)
Checks if the circular buffer is full.
uint16_t CIRCBUF_FreeSpace (CIRCULAR_BUFFER_t *buffer)
Returns the number of available bytes in the circular buffer.
void USB_CDCInitialize (void)
Initializes the CDC class.
RETURN_CODE_t USB_CDCRequestHandler (USB_SETUP_REQUEST_t *setupRequestPtr)
Performs handling of control transfers.
bool USB_CDCDataTerminalReady (void)
Checks if the Data Terminal Equipment bit has been set from the host.
void USB_CDCSetBaud (uint16_t baud)
Sets the data transfer baud rate for the CDC communication.
uint32_t USB_CDCGetBaud (void)
Gets the data transfer baud rate for the CDC communication.
void USB_CDCSetStopBits (USB_CDC_LINE_CODING_STOP_BITS_t numStopBits)
Sets the number of data transfer stop bits for the CDC communication.
USB_CDC_LINE_CODING_STOP_BITS_t USB_CDCGetStopBits (void)
Gets the number of data transfer stop bits for the CDC communication.
void USB_CDCSetParity (USD_CDC_LINE_CODING_PARITY_t parity)
Sets the data transfer parity for the CDC communication.
USD_CDC_LINE_CODING_PARITY_t USB_CDCGetParity (void)
Gets the data transfer parity for the CDC communication.
void USB_CDCSetDataBits (USD_CDC_LINE_CODING_DATA_BITS_t numDataBits)
Sets the number of data transfer data bits for the CDC communication.
USD_CDC_LINE_CODING_DATA_BITS_t USB_CDCGetDataBits (void)
Gets the number of data transfer data bits for the CDC communication.
void USB_CDCVirtualSerialPortInitialize (void)
Initializes the CDC Virtual Serial Port functionality.
RETURN_CODE_t USB_CDCVirtualSerialPortHandler (void)
Performs Virtual Serial Port writes using the CDC class.
CDC_RETURN_CODE_t USB_CDCRead (uint8_t *data)
Pulls data from the CDC receive buffer.
CDC_RETURN_CODE_t USB_CDCWrite (uint8_t data)
Adds data to the CDC transmit buffer.
bool USB_CDCTxBusy (void)
Checks if the transmit buffer is full.
void USB_CDCDataTransmitted (USB_PIPE_t pipe, USB_TRANSFER_STATUS_t status, uint16_t bytesTransferred)
Callback function called after the USB IN transaction started.
void USB_CDCDataReceived (USB_PIPE_t pipe, USB_TRANSFER_STATUS_t status, uint16_t bytesTransferred)
Callback function called after the USB OUT transaction started.