USB regulators (USBREG) peripheral driver. More...
Data Structures | |
struct | nrfx_usbreg_config_t |
The configuration of the USB-related power events. More... | |
Typedefs | |
typedef void(* | nrfx_usbreg_event_handler_t) (nrfx_usbreg_evt_t event) |
Event handler for the USB-related power events. More... | |
Enumerations | |
enum | nrfx_usbreg_evt_t { NRFX_USBREG_EVT_DETECTED , NRFX_USBREG_EVT_REMOVED , NRFX_USBREG_EVT_READY } |
Events from USB power system. More... | |
enum | nrfx_usbreg_state_t { NRFX_USBREG_STATE_DISCONNECTED , NRFX_USBREG_STATE_CONNECTED , NRFX_USBREG_STATE_READY } |
USB power state. More... | |
Functions | |
nrfx_usbreg_event_handler_t | nrfx_usbreg_handler_get (void) |
Function for getting the USBREG handler. More... | |
void | nrfx_usbreg_init (nrfx_usbreg_config_t const *p_config) |
Function for initializing the processing of USBREG events. More... | |
void | nrfx_usbreg_enable (void) |
Function for enabling the processing of USBREG events. | |
void | nrfx_usbreg_disable (void) |
Function for disabling the processing of USBREG events. | |
void | nrfx_usbreg_uninit (void) |
Function for uninitalizing the processing of USBREG events. More... | |
NRFX_STATIC_INLINE nrfx_usbreg_state_t | nrfx_usbreg_usbstatus_get (void) |
Function for getting the status of USBREG. More... | |
USB regulators (USBREG) peripheral driver.
typedef void(* nrfx_usbreg_event_handler_t) (nrfx_usbreg_evt_t event) |
Event handler for the USB-related power events.
event | Event type |
enum nrfx_usbreg_evt_t |
enum nrfx_usbreg_state_t |
USB power state.
The single enumerator that holds all data about current state of USB related POWER.
Organized this way that higher power state has higher numeric value
nrfx_usbreg_event_handler_t nrfx_usbreg_handler_get | ( | void | ) |
Function for getting the USBREG handler.
void nrfx_usbreg_init | ( | nrfx_usbreg_config_t const * | p_config | ) |
Function for initializing the processing of USBREG events.
Configures and sets up the USB power event processing.
[in] | p_config | Configuration structure. Must not be NULL. |
void nrfx_usbreg_uninit | ( | void | ) |
Function for uninitalizing the processing of USBREG events.
NRFX_STATIC_INLINE nrfx_usbreg_state_t nrfx_usbreg_usbstatus_get | ( | void | ) |
Function for getting the status of USBREG.