Hardware access layer for managing the Universal Serial Bus High Speed (USBHS) peripheral.
More...
Hardware access layer for managing the Universal Serial Bus High Speed (USBHS) peripheral.
◆ nrf_usbhs_event_t
USBHS events.
| Enumerator |
|---|
| NRF_USBHS_EVENT_CORE | Signal that the USB reset condition is detected on the USB lines.
|
◆ nrf_usbhs_int_mask_t
USBHS interrupts.
| Enumerator |
|---|
| NRF_USBHS_INT_USBCORE_MASK | Interrupt on the USBCORE event.
|
◆ nrf_usbhs_task_t
USBHS tasks.
| Enumerator |
|---|
| NRF_USBHS_TASK_START | Start the USB peripheral.
|
◆ nrf_usbhs_disable()
| NRF_STATIC_INLINE void nrf_usbhs_disable |
( |
NRF_USBHS_Type * | p_reg | ) |
|
Function for disabling the USBHS.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrf_usbhs_enable()
| NRF_STATIC_INLINE void nrf_usbhs_enable |
( |
NRF_USBHS_Type * | p_reg | ) |
|
Function for enabling the USBHS.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrf_usbhs_event_address_get()
| NRF_STATIC_INLINE uint32_t nrf_usbhs_event_address_get |
( |
NRF_USBHS_Type const * | p_reg, |
|
|
nrf_usbhs_event_t | event ) |
Function for returning the address of the specified USBHS event register.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | The specified event. |
- Returns
- Address of the event specified as a function parameter.
◆ nrf_usbhs_event_check()
| NRF_STATIC_INLINE bool nrf_usbhs_event_check |
( |
NRF_USBHS_Type const * | p_reg, |
|
|
nrf_usbhs_event_t | event ) |
Function for retrieving the state of the USBHS event.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be checked. |
- Return values
-
| true | The event has been generated. |
| false | The event has not been generated. |
◆ nrf_usbhs_event_clear()
| NRF_STATIC_INLINE void nrf_usbhs_event_clear |
( |
NRF_USBHS_Type * | p_reg, |
|
|
nrf_usbhs_event_t | event ) |
Function for clearing the specified event.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be cleared. |
◆ nrf_usbhs_event_get_and_clear()
| NRF_STATIC_INLINE bool nrf_usbhs_event_get_and_clear |
( |
NRF_USBHS_Type * | p_reg, |
|
|
nrf_usbhs_event_t | event ) |
Function for getting and clearing the state of the specified event.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be cleared. |
- Return values
-
| true | The event was set. |
| false | The event was not set. |
◆ nrf_usbhs_int_disable()
| NRF_STATIC_INLINE void nrf_usbhs_int_disable |
( |
NRF_USBHS_Type * | p_reg, |
|
|
uint32_t | mask ) |
Function for disabling the selected interrupts.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_usbhs_int_mask_t values for bit masking. |
◆ nrf_usbhs_int_enable()
| NRF_STATIC_INLINE void nrf_usbhs_int_enable |
( |
NRF_USBHS_Type * | p_reg, |
|
|
uint32_t | mask ) |
Function for enabling the selected interrupts.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_usbhs_int_mask_t values for bit masking. |
◆ nrf_usbhs_int_enable_check()
| NRF_STATIC_INLINE uint32_t nrf_usbhs_int_enable_check |
( |
NRF_USBHS_Type const * | p_reg, |
|
|
uint32_t | mask ) |
Function for checking if the specified interrupts are enabled.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be checked. Use nrf_usbhs_int_mask_t values for bit masking. |
- Returns
- Mask of enabled interrupts.
◆ nrf_usbhs_int_enable_get()
| NRF_STATIC_INLINE uint32_t nrf_usbhs_int_enable_get |
( |
NRF_USBHS_Type const * | p_reg | ) |
|
Function for retrieving the information about the enabled interrupts.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- The flags of the enabled interrupts.
◆ nrf_usbhs_task_address_get()
| NRF_STATIC_INLINE uint32_t nrf_usbhs_task_address_get |
( |
NRF_USBHS_Type const * | p_reg, |
|
|
nrf_usbhs_task_t | task ) |
Function for returning the address of the specified USBHS task register.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | The specified task. |
- Returns
- Task address.
◆ nrf_usbhs_task_trigger()
| NRF_STATIC_INLINE void nrf_usbhs_task_trigger |
( |
NRF_USBHS_Type * | p_reg, |
|
|
nrf_usbhs_task_t | task ) |
Function for activating the specified USBHS task.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task to be activated. |