sl_usbd_class_driver_t Struct Reference
INTERFACE CLASS DRIVER.
#include <sl_usbd_core.h>
Data Fields |
|
void(* | enable )(uint8_t cfg_nbr, void *p_if_class_arg) |
Notify class that cfg is active.
|
|
void(* | disable )(uint8_t cfg_nbr, void *p_if_class_arg) |
Notify class that cfg is not active.
|
|
void(* | alt_settings_update )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Notify class that alt setting has been updated.
|
|
void(* | endpoint_state_update )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Notify class that EP state has been updated.
|
|
void(* | interface_descriptor )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Construct IF functional descriptor.
|
|
uint16_t(* | interface_get_descriptor_size )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Get size of IF functional descriptor.
|
|
void(* | endpoint_descriptor )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Construct EP functional descriptor.
|
|
uint16_t(* | endpoint_get_descriptor_size )(uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Get size of EP functional descriptor.
|
|
bool(* | interface_req )(const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Interface request callback.
|
|
bool(* | class_req )(const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Class-specific request callback.
|
|
bool(* | vendor_req )(const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Vendor-specific request callback.
|
INTERFACE CLASS DRIVER.
Field Documentation
◆ enable
void(* sl_usbd_class_driver_t::enable) (uint8_t cfg_nbr, void *p_if_class_arg) |
Notify class that cfg is active.
◆ disable
void(* sl_usbd_class_driver_t::disable) (uint8_t cfg_nbr, void *p_if_class_arg) |
Notify class that cfg is not active.
◆ alt_settings_update
void(* sl_usbd_class_driver_t::alt_settings_update) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Notify class that alt setting has been updated.
◆ endpoint_state_update
void(* sl_usbd_class_driver_t::endpoint_state_update) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Notify class that EP state has been updated.
◆ interface_descriptor
void(* sl_usbd_class_driver_t::interface_descriptor) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Construct IF functional descriptor.
◆ interface_get_descriptor_size
uint16_t(* sl_usbd_class_driver_t::interface_get_descriptor_size) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Get size of IF functional descriptor.
◆ endpoint_descriptor
void(* sl_usbd_class_driver_t::endpoint_descriptor) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Construct EP functional descriptor.
◆ endpoint_get_descriptor_size
uint16_t(* sl_usbd_class_driver_t::endpoint_get_descriptor_size) (uint8_t cfg_nbr, uint8_t if_nbr, uint8_t if_alt_nbr, uint8_t ep_addr, void *p_if_class_arg, void *p_if_alt_class_arg) |
Get size of EP functional descriptor.
◆ interface_req
bool(* sl_usbd_class_driver_t::interface_req) (const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Interface request callback.
◆ class_req
bool(* sl_usbd_class_driver_t::class_req) (const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Class-specific request callback.
◆ vendor_req
bool(* sl_usbd_class_driver_t::vendor_req) (const sl_usbd_setup_req_t *p_setup_req, void *p_if_class_arg) |
Vendor-specific request callback.