nRF52840 only: Internals of the USB Nordic DFU Trigger class.
More...
|
#define | APP_USBD_NRF_DFU_TRIGGER_CONFIG(iface) (iface) |
| Nordic DFU Trigger configuration macro. More...
|
|
#define | APP_USBD_NRF_DFU_TRIGGER_INSTANCE_SPECIFIC_DEC app_usbd_nrf_dfu_trigger_inst_t inst; |
| Specific class constant data for Nordic DFU Trigger. More...
|
|
#define | APP_USBD_NRF_DFU_TRIGGER_INST_CONFIG(user_event_handler,p_nordic_dfu,sem_ver_str,timeout,size,bcd) |
| Configures Nordic DFU Trigger instance. More...
|
|
#define | APP_USBD_NRF_DFU_TRIGGER_DATA_SPECIFIC_DEC app_usbd_nrf_dfu_trigger_ctx_t ctx; |
| Specific class data for Nordic DFU Trigger. More...
|
|
#define | APP_USBD_NRF_DFU_TRIGGER_GLOBAL_DEF_INTERNAL(instance_name,interface_number,detach_timeout,transfer_size,p_nordic_dfu,sem_ver_str,user_ev_handler) |
| Global definition of Nordic DFU Trigger instance. More...
|
|
nRF52840 only: Internals of the USB Nordic DFU Trigger class.
#define APP_USBD_NRF_DFU_TRIGGER_CONFIG |
( |
|
iface | ) |
(iface) |
#define APP_USBD_NRF_DFU_TRIGGER_GLOBAL_DEF_INTERNAL |
( |
|
instance_name, |
|
|
|
interface_number, |
|
|
|
detach_timeout, |
|
|
|
transfer_size, |
|
|
|
p_nordic_dfu, |
|
|
|
sem_ver_str, |
|
|
|
user_ev_handler |
|
) |
| |
Value:
instance_name, \
app_usbd_nrf_dfu_trigger, \
p_nordic_dfu, \
sem_ver_str, \
detach_timeout, \
transfer_size, \
0x0110)) \
)
Global definition of Nordic DFU Trigger instance.
#define APP_USBD_NRF_DFU_TRIGGER_INST_CONFIG |
( |
|
user_event_handler, |
|
|
|
p_nordic_dfu, |
|
|
|
sem_ver_str, |
|
|
|
timeout, |
|
|
|
size, |
|
|
|
bcd |
|
) |
| |
Value:.inst = { \
.user_ev_handler = user_event_handler, \
.p_dfu_info = p_nordic_dfu, \
.p_sem_ver = sem_ver_str, \
.sem_ver_size = sizeof(sem_ver_str), \
.transfer_size = size, \
.detach_timeout = timeout, \
.bcd_dfu = bcd, \
}
Configures Nordic DFU Trigger instance.
- Parameters
-
user_event_handler | User event handler. |
p_nordic_dfu | Pointer to app_usbd_nrf_dfu_trigger_nordic_info_t structure. |
sem_ver_str | Semantic version string. |
timeout | Detach timeout in ms - left for compatibility with USB DFU spec. |
size | Transfer size in bytes - left for compatibility with USB DFU spec. |
bcd | USB DFU specification version. |
User event handler.
- Parameters
-
[in] | p_inst | Class instance. |
[in] | event | User event. |
Internal module state.
- Note
- For future compatibility with DFU class.
Enumerator |
---|
APP_USBD_NRF_DFU_TRIGGER_STATE_IDLE |
Internal module state IDLE
|
APP_USBD_NRF_DFU_TRIGGER_STATE_DETACH |
Internal module state DETACH
|