caffeine-hal 0.6.6
A Header-Defined Interface c library, it provides the hal layer for the Caffeine framework
Loading...
Searching...
No Matches
Data Fields
cfn_hal_usb_api_s Struct Reference

USB Virtual Method Table (VMT). Focuses exclusively on Peripheral Controller Device (PCD) functions. More...

#include <cfn_hal_usb.h>

Data Fields

cfn_hal_api_base_t base
 
cfn_hal_error_code_t(* start )(cfn_hal_usb_t *driver)
 
cfn_hal_error_code_t(* stop )(cfn_hal_usb_t *driver)
 
cfn_hal_error_code_t(* set_address )(cfn_hal_usb_t *driver, uint8_t address)
 
cfn_hal_error_code_t(* ep_open )(cfn_hal_usb_t *driver, uint8_t ep_addr, cfn_hal_usb_ep_type_t ep_type, uint16_t ep_mps)
 
cfn_hal_error_code_t(* ep_close )(cfn_hal_usb_t *driver, uint8_t ep_addr)
 
cfn_hal_error_code_t(* ep_transmit )(cfn_hal_usb_t *driver, uint8_t ep_addr, const uint8_t *data, size_t length)
 
cfn_hal_error_code_t(* ep_receive )(cfn_hal_usb_t *driver, uint8_t ep_addr, uint8_t *buffer, size_t length)
 
cfn_hal_error_code_t(* ep_stall )(cfn_hal_usb_t *driver, uint8_t ep_addr, bool stall)
 
cfn_hal_error_code_t(* read_setup_packet )(cfn_hal_usb_t *driver, uint8_t *buffer)
 
cfn_hal_error_code_t(* get_rx_data_size )(cfn_hal_usb_t *driver, uint8_t ep_addr, size_t *size)
 

Detailed Description

USB Virtual Method Table (VMT). Focuses exclusively on Peripheral Controller Device (PCD) functions.

Field Documentation

◆ base

cfn_hal_api_base_t cfn_hal_usb_api_s::base

◆ ep_close

cfn_hal_error_code_t(* cfn_hal_usb_api_s::ep_close) (cfn_hal_usb_t *driver, uint8_t ep_addr)

◆ ep_open

cfn_hal_error_code_t(* cfn_hal_usb_api_s::ep_open) (cfn_hal_usb_t *driver, uint8_t ep_addr, cfn_hal_usb_ep_type_t ep_type, uint16_t ep_mps)

◆ ep_receive

cfn_hal_error_code_t(* cfn_hal_usb_api_s::ep_receive) (cfn_hal_usb_t *driver, uint8_t ep_addr, uint8_t *buffer, size_t length)

◆ ep_stall

cfn_hal_error_code_t(* cfn_hal_usb_api_s::ep_stall) (cfn_hal_usb_t *driver, uint8_t ep_addr, bool stall)

◆ ep_transmit

cfn_hal_error_code_t(* cfn_hal_usb_api_s::ep_transmit) (cfn_hal_usb_t *driver, uint8_t ep_addr, const uint8_t *data, size_t length)

◆ get_rx_data_size

cfn_hal_error_code_t(* cfn_hal_usb_api_s::get_rx_data_size) (cfn_hal_usb_t *driver, uint8_t ep_addr, size_t *size)

◆ read_setup_packet

cfn_hal_error_code_t(* cfn_hal_usb_api_s::read_setup_packet) (cfn_hal_usb_t *driver, uint8_t *buffer)

◆ set_address

cfn_hal_error_code_t(* cfn_hal_usb_api_s::set_address) (cfn_hal_usb_t *driver, uint8_t address)

◆ start

cfn_hal_error_code_t(* cfn_hal_usb_api_s::start) (cfn_hal_usb_t *driver)

◆ stop

cfn_hal_error_code_t(* cfn_hal_usb_api_s::stop) (cfn_hal_usb_t *driver)

The documentation for this struct was generated from the following file: