nrfx 3.3
Data Structures | Enumerations | Functions
USB Voltage Regulator HAL

Hardware access layer for managing the USB Voltage Regulator. More...

Data Structures

struct  nrf_vregusb_tcfg_t
 Test mode configuration. More...
 

Enumerations

enum  nrf_vregusb_task_t {
  NRF_VREGUSB_TASK_START = offsetof(NRF_VREGUSB_Type, TASKS_START) ,
  NRF_VREGUSB_TASK_STOP = offsetof(NRF_VREGUSB_Type, TASKS_STOP)
}
 VREGUSB tasks. More...
 
enum  nrf_vregusb_event_t {
  NRF_VREGUSB_EVENT_VBUS_DETECTED_RAW = offsetof(NRF_VREGUSB_Type, EVENTS_VBUSDETECTEDRAW) ,
  NRF_VREGUSB_EVENT_VBUS_DETECTED = offsetof(NRF_VREGUSB_Type, EVENTS_VBUSDETECTED) ,
  NRF_VREGUSB_EVENT_SETTLED_0V8 = offsetof(NRF_VREGUSB_Type, EVENTS_SETTLED0V8) ,
  NRF_VREGUSB_EVENT_SETTLED_3V3 = offsetof(NRF_VREGUSB_Type, EVENTS_SETTLED3V3) ,
  NRF_VREGUSB_EVENT_VBUS_REMOVED = offsetof(NRF_VREGUSB_Type, EVENTS_VBUSREMOVED)
}
 VREGUSB events. More...
 
enum  nrf_vregusb_int_mask_t {
  NRF_VREGUSB_INT_VBUS_DETECTED_RAW_MASK = VREGUSB_INTEN_VBUSDETECTEDRAW_Msk ,
  NRF_VREGUSB_INT_VBUS_DETECTED_MASK = VREGUSB_INTEN_VBUSDETECTED_Msk ,
  NRF_VREGUSB_INT_SETTLED_0V8_MASK = VREGUSB_INTEN_SETTLED0V8_Msk ,
  NRF_VREGUSB_INT_SETTLED_3V3_MASK = VREGUSB_INTEN_SETTLED3V3_Msk ,
  NRF_VREGUSB_INT_VBUS_REMOVED_MASK = VREGUSB_INTEN_VBUSREMOVED_Msk
}
 VREGUSB interrupts. More...
 
enum  nrf_vregusb_status_mask_t {
  NRF_VREGUSB_STATUS_READY_MASK = VREGUSB_STATUS_READY_Msk ,
  NRF_VREGUSB_STATUS_VBUS_DETRAW_MASK = VREGUSB_STATUS_VBUSDETRAW_Msk ,
  NRF_VREGUSB_STATUS_VBUS_DET_MASK = VREGUSB_STATUS_VBUSDET_Msk ,
  NRF_VREGUSB_STATUS_READY_0V8_MASK = VREGUSB_STATUS_READY0V8_Msk ,
  NRF_VREGUSB_STATUS_SETTLED_0V8_MASK = VREGUSB_STATUS_SETTLED0V8_Msk ,
  NRF_VREGUSB_STATUS_READY_3V3_MASK = VREGUSB_STATUS_READY3V3_Msk ,
  NRF_VREGUSB_STATUS_SETTLED_3V3_MASK = VREGUSB_STATUS_SETTLED3V3_Msk
}
 STATUS register states. More...
 
enum  nrf_vregusb_pwrup_mode_t {
  NRF_VREGUSB_PWRUP_MODE_AUTO = VREGUSB_PWRUP_AUTOMODE_Auto << VREGUSB_PWRUP_AUTOMODE_Pos ,
  NRF_VREGUSB_PWRUP_MODE_MANUAL_ON ,
  NRF_VREGUSB_PWRUP_MODE_MANUAL_OFF
}
 Power up modes. More...
 
enum  nrf_vregusb_pwrup_target_t {
  NRF_VREGUSB_PWRUP_TARGET_USB_PM ,
  NRF_VREGUSB_PWRUP_TARGET_0V8 ,
  NRF_VREGUSB_PWRUP_TARGET_3V3
}
 Power up target. More...
 
enum  nrf_vregusb_analog_signal_t {
  NRF_VREGUSB_ANALOG_SIGNAL_VBUS_DETRAW ,
  NRF_VREGUSB_ANALOG_SIGNAL_VBUS_DET ,
  NRF_VREGUSB_ANALOG_SIGNAL_SETTLED_0V8 ,
  NRF_VREGUSB_ANALOG_SIGNAL_SETTLED_3V3
}
 Analog signal to be overridden. 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.
 
NRF_STATIC_INLINE void nrf_vregusb_dft_atb0_config_set (NRF_VREGUSB_Type *p_reg, bool enable)
 Function for configuring Analog Test Bus 0 (ATB0).
 
NRF_STATIC_INLINE void nrf_vregusb_dft_atb1_config_set (NRF_VREGUSB_Type *p_reg, bool enable)
 Function for configuring Analog Test Bus 1 (ATB1).
 
NRF_STATIC_INLINE void nrf_vregusb_dft_dtb0_config_set (NRF_VREGUSB_Type *p_reg, bool enable)
 Function for configuring Digital Test Bus 0 (DTB0).
 
NRF_STATIC_INLINE void nrf_vregusb_dft_tcfg_config_set (NRF_VREGUSB_Type *p_reg, nrf_vregusb_tcfg_t tcfg)
 Function for configuring test mode.
 

Detailed Description

Hardware access layer for managing the USB Voltage Regulator.

Enumeration Type Documentation

◆ nrf_vregusb_analog_signal_t

Analog signal to be overridden.

Enumerator
NRF_VREGUSB_ANALOG_SIGNAL_VBUS_DETRAW 

Override VBUSDETRAW signal.

NRF_VREGUSB_ANALOG_SIGNAL_VBUS_DET 

Override VBUSDET signal.

NRF_VREGUSB_ANALOG_SIGNAL_SETTLED_0V8 

Override SETTLED0V8 signal.

NRF_VREGUSB_ANALOG_SIGNAL_SETTLED_3V3 

Override SETTLED3V3 signal.

◆ nrf_vregusb_event_t

VREGUSB events.

Enumerator
NRF_VREGUSB_EVENT_VBUS_DETECTED_RAW 

VBUS detected.

NRF_VREGUSB_EVENT_VBUS_DETECTED 

VBUS detected.

NRF_VREGUSB_EVENT_SETTLED_0V8 

0v8 settled.

NRF_VREGUSB_EVENT_SETTLED_3V3 

3v3 settled.

NRF_VREGUSB_EVENT_VBUS_REMOVED 

VBUS removed.

◆ nrf_vregusb_int_mask_t

VREGUSB interrupts.

Enumerator
NRF_VREGUSB_INT_VBUS_DETECTED_RAW_MASK 

Interrupt on VBUS detected.

NRF_VREGUSB_INT_VBUS_DETECTED_MASK 

Interrupt on VBUS detected.

NRF_VREGUSB_INT_SETTLED_0V8_MASK 

Interrupt on 0v8 settled.

NRF_VREGUSB_INT_SETTLED_3V3_MASK 

Interrupt on 3v3 settled.

NRF_VREGUSB_INT_VBUS_REMOVED_MASK 

Interrupt on VBUS removed.

◆ nrf_vregusb_pwrup_mode_t

Power up modes.

Enumerator
NRF_VREGUSB_PWRUP_MODE_AUTO 

USB PM automatically powered.

NRF_VREGUSB_PWRUP_MODE_MANUAL_ON 

USB PM manually powered on.

NRF_VREGUSB_PWRUP_MODE_MANUAL_OFF 

USB PM manually powered off.

◆ nrf_vregusb_pwrup_target_t

Power up target.

Enumerator
NRF_VREGUSB_PWRUP_TARGET_USB_PM 

Power up USB PM.

NRF_VREGUSB_PWRUP_TARGET_0V8 

Power up 0v8.

NRF_VREGUSB_PWRUP_TARGET_3V3 

Power up 3v3.

◆ nrf_vregusb_status_mask_t

STATUS register states.

Enumerator
NRF_VREGUSB_STATUS_READY_MASK 

USB PM powered up.

NRF_VREGUSB_STATUS_VBUS_DETRAW_MASK 

VBUS detected, raw signal.

NRF_VREGUSB_STATUS_VBUS_DET_MASK 

VBUS detected.

NRF_VREGUSB_STATUS_READY_0V8_MASK 

Power 0v8 ready.

NRF_VREGUSB_STATUS_SETTLED_0V8_MASK 

Power 0v8 settled.

NRF_VREGUSB_STATUS_READY_3V3_MASK 

Power 3v3 ready.

NRF_VREGUSB_STATUS_SETTLED_3V3_MASK 

Power 3v3 settled.

◆ nrf_vregusb_task_t

VREGUSB tasks.

Enumerator
NRF_VREGUSB_TASK_START 

Request power up of USB PM.

NRF_VREGUSB_TASK_STOP 

Stop requesting power up for USB PM.

Function Documentation

◆ nrf_vregusb_config_rdy_ldo_stim_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Time value.

◆ nrf_vregusb_config_rdy_ldo_stim_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valFrom 0 (0us) to 160 (10us).

◆ nrf_vregusb_config_rdy_tim_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Time value.

◆ nrf_vregusb_config_rdy_tim_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valFrom 0 (0us) to 48 (3us).

◆ nrf_vregusb_config_setl_0v8_tim_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Time value.

◆ nrf_vregusb_config_setl_0v8_tim_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valFrom 0 (0us) to 16000 (1000us).

◆ nrf_vregusb_config_setl_3v3_tim_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Time value.

◆ nrf_vregusb_config_setl_3v3_tim_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valFrom 0 (0us) to 16000 (1000us).

◆ nrf_vregusb_config_vbrft_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Time value.

◆ nrf_vregusb_config_vbrft_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valFrom 0 (0us) to 8000 (500us).

◆ nrf_vregusb_dft_atb0_config_set()

NRF_STATIC_INLINE void nrf_vregusb_dft_atb0_config_set ( NRF_VREGUSB_Type *  p_reg,
bool  enable 
)

Function for configuring Analog Test Bus 0 (ATB0).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue to enable test bus.

◆ nrf_vregusb_dft_atb1_config_set()

NRF_STATIC_INLINE void nrf_vregusb_dft_atb1_config_set ( NRF_VREGUSB_Type *  p_reg,
bool  enable 
)

Function for configuring Analog Test Bus 1 (ATB1).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue to enable test bus.

◆ nrf_vregusb_dft_dtb0_config_set()

NRF_STATIC_INLINE void nrf_vregusb_dft_dtb0_config_set ( NRF_VREGUSB_Type *  p_reg,
bool  enable 
)

Function for configuring Digital Test Bus 0 (DTB0).

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue to enable test bus.

◆ nrf_vregusb_dft_tcfg_config_set()

NRF_STATIC_INLINE void nrf_vregusb_dft_tcfg_config_set ( NRF_VREGUSB_Type *  p_reg,
nrf_vregusb_tcfg_t  tcfg 
)

Function for configuring test mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]tcfgTest mode configuration.

◆ nrf_vregusb_event_address_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventThe specified event.
Returns
Address of the specified event register.

◆ nrf_vregusb_event_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_vregusb_event_clear()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be cleared.

◆ nrf_vregusb_int_disable()

NRF_STATIC_INLINE void nrf_vregusb_int_disable ( NRF_VREGUSB_Type *  p_reg,
uint32_t  mask 
)

Function for disabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_vregusb_int_mask_t values for bit masking.

◆ nrf_vregusb_int_enable()

NRF_STATIC_INLINE void nrf_vregusb_int_enable ( NRF_VREGUSB_Type *  p_reg,
uint32_t  mask 
)

Function for enabling specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_vregusb_int_mask_t values for bit masking.

◆ nrf_vregusb_int_enable_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked. Use nrf_vregusb_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_vregusb_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_vregusb_int_pending_get ( NRF_VREGUSB_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

Note
States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bitmask with information about pending interrupts. Use nrf_vregusb_int_mask_t values for bit masking.

◆ nrf_vregusb_mirror_lock_set()

NRF_STATIC_INLINE void nrf_vregusb_mirror_lock_set ( NRF_VREGUSB_Type *  p_reg,
bool  lock 
)

Function for locking mirrored registers.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]lockWhen true lock is enabled. When false lock is disabled and mirrored registers can be updated at any time.

◆ nrf_vregusb_override_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]signalSignal to be overridden.
[in]enableTrue to enable override and false to disable.
[in]valOverride value.

◆ nrf_vregusb_pwrup_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]targetPower up target.
[in]modeMode configuration.

◆ nrf_vregusb_status_get()

NRF_STATIC_INLINE uint32_t nrf_vregusb_status_get ( NRF_VREGUSB_Type const *  p_reg)

Function for getting VREGUSB status register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
The STATUS register value. Use nrf_vregusb_status_mask_t values for bit masking.

◆ nrf_vregusb_task_address_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskThe specified task.
Returns
Address of the specified task register.

◆ nrf_vregusb_task_trigger()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask to be activated.

◆ nrf_vregusb_trim_0v8_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Voltage offset trimming value.

◆ nrf_vregusb_trim_0v8_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valVoltage offset trimming value. The value is -160mV + 20mV steps.

◆ nrf_vregusb_trim_3v3_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Voltage offset trimming value.

◆ nrf_vregusb_trim_3v3_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valVoltage offset trimming value. The value is -528mV + 66mV steps.

◆ nrf_vregusb_trim_ibp_get()

NRF_STATIC_INLINE uint8_t nrf_vregusb_trim_ibp_get ( NRF_VREGUSB_Type const *  p_reg)

Function for getting 10uA IBP bias current trim.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value.

◆ nrf_vregusb_trim_ibp_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valTrimming value. The value is -2.28uA + 0.285uA steps.

◆ nrf_vregusb_trim_vdd_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trimming value.

◆ nrf_vregusb_trim_vdd_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valCurrent reference trimming value. The value is 35.2mV - 4.4mV steps.

Documentation feedback | Developer Zone | Subscribe | Updated