![]() |
nrfx 4.5.0
|
Hardware access layer for managing the USB Voltage Regulator. More...
Functions | |
| NRF_STATIC_INLINE void | nrf_vregusb_task_trigger (NRF_VREGUSB_Type *p_reg, nrf_vregusb_task_t task) |
| Function for activating the specified VREGUSB task. | |
| NRF_STATIC_INLINE uint32_t | nrf_vregusb_task_address_get (NRF_VREGUSB_Type const *p_reg, nrf_vregusb_task_t task) |
| Function for getting the address of the specified VREGUSB task register. | |
| NRF_STATIC_INLINE void | nrf_vregusb_event_clear (NRF_VREGUSB_Type *p_reg, nrf_vregusb_event_t event) |
| Function for clearing the specified VREGUSB event. | |
| NRF_STATIC_INLINE bool | nrf_vregusb_event_check (NRF_VREGUSB_Type const *p_reg, nrf_vregusb_event_t event) |
| Function for retrieving the state of the VREGUSB event. | |
| NRF_STATIC_INLINE uint32_t | nrf_vregusb_event_address_get (NRF_VREGUSB_Type const *p_reg, nrf_vregusb_event_t event) |
| Function for getting the address of the specified event register. | |
| NRF_STATIC_INLINE void | nrf_vregusb_int_enable (NRF_VREGUSB_Type *p_reg, uint32_t mask) |
| Function for enabling specified interrupts. | |
| NRF_STATIC_INLINE void | nrf_vregusb_int_disable (NRF_VREGUSB_Type *p_reg, uint32_t mask) |
| Function for disabling specified interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_vregusb_int_enable_check (NRF_VREGUSB_Type const *p_reg, uint32_t mask) |
| Function for checking if the specified interrupts are enabled. | |
| NRF_STATIC_INLINE uint32_t | nrf_vregusb_int_pending_get (NRF_VREGUSB_Type const *p_reg) |
| Function for retrieving the state of pending interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_vregusb_status_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting VREGUSB status register. | |
| NRF_STATIC_INLINE void | nrf_vregusb_config_rdy_tim_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting time from PM power up to ready signal. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_config_rdy_tim_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting time from PM power up to ready signal. | |
| NRF_STATIC_INLINE void | nrf_vregusb_config_vbrft_set (NRF_VREGUSB_Type *p_reg, uint16_t val) |
| Function for setting time from VBUSDETRAW until filtered VBUSDET. | |
| NRF_STATIC_INLINE uint16_t | nrf_vregusb_config_vbrft_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting time from VBUSDETRAW until filtered VBUSDET. | |
| NRF_STATIC_INLINE void | nrf_vregusb_config_rdy_ldo_stim_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting time from power up LDOs until ready. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_config_rdy_ldo_stim_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting time from power up LDOs until ready. | |
| NRF_STATIC_INLINE void | nrf_vregusb_config_setl_0v8_tim_set (NRF_VREGUSB_Type *p_reg, uint16_t val) |
| Function for setting time from LDOs ready to SETTLED0v8. | |
| NRF_STATIC_INLINE uint16_t | nrf_vregusb_config_setl_0v8_tim_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting time from LDOs ready to SETTLED0v8. | |
| NRF_STATIC_INLINE void | nrf_vregusb_config_setl_3v3_tim_set (NRF_VREGUSB_Type *p_reg, uint16_t val) |
| Function for setting time from SETTLE0v8 to SETTLED3v3. | |
| NRF_STATIC_INLINE uint16_t | nrf_vregusb_config_setl_3v3_tim_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting time from SETTLE0v8 to SETTLED3v3. | |
| NRF_STATIC_INLINE void | nrf_vregusb_trim_vdd_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting USB PM internal 1.8V trim. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_trim_vdd_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting USB PM internal 1.8V trim. | |
| NRF_STATIC_INLINE void | nrf_vregusb_trim_ibp_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting 10uA IBP bias current trim. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_trim_ibp_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting 10uA IBP bias current trim. | |
| NRF_STATIC_INLINE void | nrf_vregusb_trim_0v8_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting USB PHY 0.8V DVDD trimming value. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_trim_0v8_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting USB PHY 0.8V DVDD trimming value. | |
| NRF_STATIC_INLINE void | nrf_vregusb_trim_3v3_set (NRF_VREGUSB_Type *p_reg, uint8_t val) |
| Function for setting USB PHY 3.3V VDD trimming value. | |
| NRF_STATIC_INLINE uint8_t | nrf_vregusb_trim_3v3_get (NRF_VREGUSB_Type const *p_reg) |
| Function for getting USB PHY 3.3V VDD trimming value. | |
| NRF_STATIC_INLINE void | nrf_vregusb_mirror_lock_set (NRF_VREGUSB_Type *p_reg, bool lock) |
| Function for locking mirrored registers. | |
| NRF_STATIC_INLINE void | nrf_vregusb_pwrup_set (NRF_VREGUSB_Type *p_reg, nrf_vregusb_pwrup_target_t target, nrf_vregusb_pwrup_mode_t mode) |
| Function for setting power up target configuration. | |
| NRF_STATIC_INLINE void | nrf_vregusb_override_set (NRF_VREGUSB_Type *p_reg, nrf_vregusb_analog_signal_t signal, bool enable, uint8_t val) |
| Function for override signal to the analog module. | |
Hardware access layer for managing the USB Voltage Regulator.
| enum nrf_vregusb_event_t |
VREGUSB interrupts.
STATUS register states.
| enum nrf_vregusb_task_t |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_config_rdy_ldo_stim_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting time from power up LDOs until ready.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_config_rdy_ldo_stim_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting time from power up LDOs until ready.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | From 0 (0us) to 160 (10us). |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_config_rdy_tim_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting time from PM power up to ready signal.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_config_rdy_tim_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting time from PM power up to ready signal.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | From 0 (0us) to 48 (3us). |
| NRF_STATIC_INLINE uint16_t nrf_vregusb_config_setl_0v8_tim_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting time from LDOs ready to SETTLED0v8.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_config_setl_0v8_tim_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint16_t | val ) |
Function for setting time from LDOs ready to SETTLED0v8.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | From 0 (0us) to 16000 (1000us). |
| NRF_STATIC_INLINE uint16_t nrf_vregusb_config_setl_3v3_tim_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting time from SETTLE0v8 to SETTLED3v3.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_config_setl_3v3_tim_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint16_t | val ) |
Function for setting time from SETTLE0v8 to SETTLED3v3.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | From 0 (0us) to 16000 (1000us). |
| NRF_STATIC_INLINE uint16_t nrf_vregusb_config_vbrft_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting time from VBUSDETRAW until filtered VBUSDET.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_config_vbrft_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint16_t | val ) |
Function for setting time from VBUSDETRAW until filtered VBUSDET.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | From 0 (0us) to 8000 (500us). |
| NRF_STATIC_INLINE uint32_t nrf_vregusb_event_address_get | ( | NRF_VREGUSB_Type const * | p_reg, |
| nrf_vregusb_event_t | event ) |
Function for getting the address of the specified event register.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | The specified event. |
| NRF_STATIC_INLINE bool nrf_vregusb_event_check | ( | NRF_VREGUSB_Type const * | p_reg, |
| nrf_vregusb_event_t | event ) |
Function for retrieving the state of the VREGUSB event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be checked. |
| true | The event has been generated. |
| false | The event has not been generated. |
| NRF_STATIC_INLINE void nrf_vregusb_event_clear | ( | NRF_VREGUSB_Type * | p_reg, |
| nrf_vregusb_event_t | event ) |
Function for clearing the specified VREGUSB event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be cleared. |
| NRF_STATIC_INLINE void nrf_vregusb_int_disable | ( | NRF_VREGUSB_Type * | p_reg, |
| uint32_t | mask ) |
Function for disabling specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_vregusb_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_vregusb_int_enable | ( | NRF_VREGUSB_Type * | p_reg, |
| uint32_t | mask ) |
Function for enabling specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_vregusb_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE uint32_t nrf_vregusb_int_enable_check | ( | NRF_VREGUSB_Type const * | p_reg, |
| uint32_t | mask ) |
Function for checking if the specified interrupts are enabled.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be checked. Use nrf_vregusb_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE uint32_t nrf_vregusb_int_pending_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for retrieving the state of pending interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_mirror_lock_set | ( | NRF_VREGUSB_Type * | p_reg, |
| bool | lock ) |
Function for locking mirrored registers.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | lock | When true lock is enabled. When false lock is disabled and mirrored registers can be updated at any time. |
| NRF_STATIC_INLINE void nrf_vregusb_override_set | ( | NRF_VREGUSB_Type * | p_reg, |
| nrf_vregusb_analog_signal_t | signal, | ||
| bool | enable, | ||
| uint8_t | val ) |
Function for override signal to the analog module.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | signal | Signal to be overridden. |
| [in] | enable | True to enable override and false to disable. |
| [in] | val | Override value. |
| NRF_STATIC_INLINE void nrf_vregusb_pwrup_set | ( | NRF_VREGUSB_Type * | p_reg, |
| nrf_vregusb_pwrup_target_t | target, | ||
| nrf_vregusb_pwrup_mode_t | mode ) |
Function for setting power up target configuration.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | target | Power up target. |
| [in] | mode | Mode configuration. |
| NRF_STATIC_INLINE uint32_t nrf_vregusb_status_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting VREGUSB status register.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE uint32_t nrf_vregusb_task_address_get | ( | NRF_VREGUSB_Type const * | p_reg, |
| nrf_vregusb_task_t | task ) |
Function for getting the address of the specified VREGUSB task register.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | The specified task. |
| NRF_STATIC_INLINE void nrf_vregusb_task_trigger | ( | NRF_VREGUSB_Type * | p_reg, |
| nrf_vregusb_task_t | task ) |
Function for activating the specified VREGUSB task.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task to be activated. |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_trim_0v8_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting USB PHY 0.8V DVDD trimming value.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_trim_0v8_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting USB PHY 0.8V DVDD trimming value.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | Voltage offset trimming value. The value is -160mV + 20mV steps. |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_trim_3v3_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting USB PHY 3.3V VDD trimming value.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_trim_3v3_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting USB PHY 3.3V VDD trimming value.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | Voltage offset trimming value. The value is -528mV + 66mV steps. |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_trim_ibp_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting 10uA IBP bias current trim.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_trim_ibp_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting 10uA IBP bias current trim.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | Trimming value. The value is -2.28uA + 0.285uA steps. |
| NRF_STATIC_INLINE uint8_t nrf_vregusb_trim_vdd_get | ( | NRF_VREGUSB_Type const * | p_reg | ) |
Function for getting USB PM internal 1.8V trim.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_vregusb_trim_vdd_set | ( | NRF_VREGUSB_Type * | p_reg, |
| uint8_t | val ) |
Function for setting USB PM internal 1.8V trim.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | Current reference trimming value. The value is 35.2mV - 4.4mV steps. |