![]() |
nRF5 SDK
v12.3.0
|
| Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API |
nRF52840 only: Internals of the USB MSC class. More...
Data Structures | |
| struct | app_usbd_msc_inst_t |
| MSC part of class instance data. More... | |
| struct | app_usbd_msc_ctx_t |
| MSC context. More... | |
Macros | |
| #define | APP_USBD_MSC_MINIMAL_SERIAL_STRING_SIZE (12 + 1) |
| Minimal serial string descriptor length. | |
| #define | APP_USBD_MSC_CONFIG(iface, endpoints) ((iface, BRACKET_EXTRACT(endpoints))) |
| MSC configuration macro. More... | |
| #define | APP_USBD_MSC_INSTANCE_SPECIFIC_DEC app_usbd_msc_inst_t inst; |
| Specific class constant data for MSC. More... | |
| #define | APP_USBD_MSC_INST_CONFIG(descriptors, block_devs, block_buff, user_event_handler) |
| Configures MSC instance. More... | |
| #define | APP_USBD_MSC_DATA_SPECIFIC_DEC app_usbd_msc_ctx_t ctx; |
| Specific class data for MSC. More... | |
| #define | APP_USBD_MSC_DSC_CONFIG(interface_number,...) |
| MSC descriptors config macro. More... | |
| #define | APP_USBD_MSC_GLOBAL_DEF_INTERNAL(instance_name,interface_number,user_ev_handler,endpoint_list,blockdev_list,workbuffer_size) |
| Global definition of mass storage class instance. More... | |
Typedefs | |
| typedef void(* | app_usbd_msc_user_ev_handler_t )(app_usbd_class_inst_t const *p_inst, enum app_usbd_msc_user_event_e event) |
| User event handler. More... | |
Functions | |
| APP_USBD_CLASS_FORWARD (app_usbd_msc) | |
| Forward declaration of Mass Storage Class type. | |
Variables | |
| const app_usbd_class_methods_t | app_usbd_msc_class_methods |
| Public MSC class interface. | |
nRF52840 only: Internals of the USB MSC class.
| #define APP_USBD_MSC_CONFIG | ( | iface, | |
| endpoints | |||
| ) | ((iface, BRACKET_EXTRACT(endpoints))) |
MSC configuration macro.
Used by APP_USBD_MSC_GLOBAL_DEF
| iface | Interface number |
| endpoints | Endpoint list |
| #define APP_USBD_MSC_DATA_SPECIFIC_DEC app_usbd_msc_ctx_t ctx; |
Specific class data for MSC.
| #define APP_USBD_MSC_DSC_CONFIG | ( | interface_number, | |
| ... | |||
| ) |
MSC descriptors config macro.
| interface_number | Interface number |
| ... | Extracted endpoint list |
| #define APP_USBD_MSC_GLOBAL_DEF_INTERNAL | ( | instance_name, | |
| interface_number, | |||
| user_ev_handler, | |||
| endpoint_list, | |||
| blockdev_list, | |||
| workbuffer_size | |||
| ) |
Global definition of mass storage class instance.
| #define APP_USBD_MSC_INST_CONFIG | ( | descriptors, | |
| block_devs, | |||
| block_buff, | |||
| user_event_handler | |||
| ) |
Configures MSC instance.
| descriptors | Mass storage class descriptors (raw table) |
| block_devs | Block devices list |
| block_buff | Block buffer |
| user_event_handler | User event handler |
| #define APP_USBD_MSC_INSTANCE_SPECIFIC_DEC app_usbd_msc_inst_t inst; |
Specific class constant data for MSC.
| typedef void(* app_usbd_msc_user_ev_handler_t)(app_usbd_class_inst_t const *p_inst, enum app_usbd_msc_user_event_e event) |
User event handler.
| [in] | p_inst | Class instance |
| [in] | event | User event |
| enum app_usbd_msc_state_t |
Internal module state.