nRF52840 only: Module with types, definitions, and API used by the USB Nordic DFU Trigger class. More...
Modules | |
USB Nordic DFU Trigger internals | |
nRF52840 only: Internals of the USB Nordic DFU Trigger class. | |
USB Nordic DFU Trigger types | |
nRF52840 only: Types used in the USB Nordic DFU Trigger class. | |
USBD Nordic DFU Trigger class configuration | |
Data Structures | |
struct | app_usbd_nrf_dfu_trigger_t |
Nordic DFU Trigger class instance type. More... | |
Macros | |
#define | APP_USBD_NRF_DFU_TRIGGER_GLOBAL_DEF(instance_name,interface_number,p_nordic_dfu,sem_ver_str,user_ev_handler) |
Global definition of app_usbd_nrf_dfu_trigger_t class. More... | |
Typedefs | |
typedef enum app_usbd_nrf_dfu_trigger_user_event_e | app_usbd_nrf_dfu_trigger_user_event_t |
Events passed to user event handler. More... | |
Enumerations | |
enum | app_usbd_nrf_dfu_trigger_user_event_e { APP_USBD_NRF_DFU_TRIGGER_USER_EVT_DETACH } |
Events passed to user event handler. More... | |
Functions | |
static app_usbd_class_inst_t const * | app_usbd_nrf_dfu_trigger_class_inst_get (app_usbd_nrf_dfu_trigger_t const *p_dfu) |
Helper function to get class instance from Nordic DFU Trigger. More... | |
static app_usbd_nrf_dfu_trigger_t const * | app_usbd_nrf_dfu_trigger_class_get (app_usbd_class_inst_t const *p_inst) |
Helper function to get DFU from base class instance. More... | |
nRF52840 only: Module with types, definitions, and API used by the USB Nordic DFU Trigger class.
#define APP_USBD_NRF_DFU_TRIGGER_GLOBAL_DEF | ( | instance_name, | |
interface_number, | |||
p_nordic_dfu, | |||
sem_ver_str, | |||
user_ev_handler | |||
) |
Global definition of app_usbd_nrf_dfu_trigger_t class.
instance_name | Name of global instance. |
interface_number | Unique interface number. |
p_nordic_dfu | Pointer to app_usbd_nrf_dfu_trigger_nordic_info_t structure. |
sem_ver_str | Semantic version string. |
user_ev_handler | User event handler (optional). |
Events passed to user event handler.
void dfu_user_ev_handler(app_usbd_class_inst_t const * p_inst, app_usbd_nrf_dfu_trigger_user_event_t event);
Events passed to user event handler.
void dfu_user_ev_handler(app_usbd_class_inst_t const * p_inst, app_usbd_nrf_dfu_trigger_user_event_t event);
|
inlinestatic |
Helper function to get DFU from base class instance.
[in] | p_inst | Base class instance. |
|
inlinestatic |
Helper function to get class instance from Nordic DFU Trigger.
[in] | p_dfu | Nordic DFU Trigger instance (declared by APP_USBD_NRF_DFU_TRIGGER_GLOBAL_DEF) |