nrfx 4.5.0
Loading...
Searching...
No Matches
VPR CSR VIO HAL

Hardware access layer for managing the VPR RISC-V CPU Control and Status Registers for VPR IO (VPR CSR VIO). More...

Data Structures

struct  nrf_vpr_csr_vio_mode_out_t
 Output mode structure. More...
 
struct  nrf_vpr_csr_vio_shift_ctrl_t
 Shift control configuration. More...
 
struct  nrf_vpr_csr_vio_config_t
 VIO configuration. More...
 

Macros

#define NRF_VPR_HAS_OUTUB_OUT   1
 Symbol indicating whether buffered write to unshifted parts of OUT is present.
 
#define NRF_VPR_HAS_OUTBD   1
 Symbol indicating whether OUTBD registers are present.
 
#define NRF_VPR_CSR_VIO_SHIFT_CNT_IN_MAX   VPRCSR_NORDIC_SHIFTCNTIN_VALUE_Max
 Maximum number of frames to be shifted from buffered input before new data is required.
 
#define NRF_VPR_CSR_VIO_SHIFT_CNT_OUT_MAX   VPRCSR_NORDIC_SHIFTCNTOUT_VALUE_Max
 Maximum number of frames to be shifted from buffered output before new data is required.
 
#define NRF_VPR_CSR_VIO_SHIFT_CNT_OUT_BUFFERED_MAX   VPRCSR_NORDIC_SHIFTCNTB_VALUE_Max
 Maximum buffered number of frames to be shifted from buffered interrupt before new data is required.
 

Enumerations

enum  nrf_vpr_csr_vio_shift_t {
  NRF_VPR_CSR_VIO_SHIFT_NONE = VPRCSR_NORDIC_OUTMODE_MODE_NoShifting ,
  NRF_VPR_CSR_VIO_SHIFT_OUTB = VPRCSR_NORDIC_OUTMODE_MODE_OutBBuf ,
  NRF_VPR_CSR_VIO_SHIFT_OUTB_TOGGLE = VPRCSR_NORDIC_OUTMODE_MODE_OutBBufToggleClk
}
 Shift mode. More...
 
enum  nrf_vpr_csr_vio_mode_in_t {
  NRF_VPR_CSR_VIO_MODE_IN_CONTINUOUS = VPRCSR_NORDIC_INMODE_MODE_CONTINUOUS ,
  NRF_VPR_CSR_VIO_MODE_IN_EVENT = VPRCSR_NORDIC_INMODE_MODE_EVENT ,
  NRF_VPR_CSR_VIO_MODE_IN_SHIFT = VPRCSR_NORDIC_INMODE_MODE_SHIFT
}
 Input modes. More...
 
enum  nrf_vpr_csr_vio_out_unshifted_trigger_t {
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTCNT0 = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTCNT0 ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTCNT1 = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTCNT1 ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVIO = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTVIO ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVIOANY = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTVIOANY ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVTASKSANY = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTVTASKSANY ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTSHIFTCNTOUT = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTSHIFTCNTOUT ,
  NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTSHIFTCNTIN = VPRCSR_NORDIC_OUTUBTRIG_SEL_IEVENTSHIFTCNTIN
}
 Unshifted pins trigger condition for transferring OUTUB to OUT. More...
 

Functions

NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_dir_get (void)
 Function for getting the pin directions mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_set (uint16_t value)
 Function for setting the pin directions mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_output_set (uint16_t value)
 Function for setting the specified pins as outputs.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_input_set (uint16_t value)
 Function for setting the specified pins as inputs.
 
NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_dir_buffered_get (void)
 Function for getting the buffered pin directions mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_set (uint16_t value)
 Function for setting the buffered pin directions mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_output_set (uint16_t value)
 Function for setting the specified buffered pins as outputs.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_input_set (uint16_t value)
 Function for setting the specified buffered pins as inputs.
 
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_dir_buffered_dirty_check (void)
 Function for retrieving the dirty status of buffered pin directions mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_toggle_set (uint16_t mask)
 Function for setting the pin directions toggle mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_toggle_set (uint16_t mask)
 Function for setting the buffered pin directions toggle mask.
 
NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_in_get (void)
 Function for getting the input values.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_in_buffered_get (void)
 Function for getting the buffered input values.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_in_buffered_reversed_byte_get (void)
 Function for getting the buffered input values, reversed in each byte.
 
NRF_STATIC_INLINE nrf_vpr_csr_vio_mode_in_t nrf_vpr_csr_vio_mode_in_get (void)
 Function for getting the input mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_in_set (nrf_vpr_csr_vio_mode_in_t mode)
 Function for setting the input mode.
 
NRF_STATIC_INLINE nrf_vpr_csr_vio_mode_in_t nrf_vpr_csr_vio_mode_in_buffered_get (void)
 Function for getting the buffered input mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_in_buffered_set (nrf_vpr_csr_vio_mode_in_t mode)
 Function for setting the buffered input mode.
 
NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_out_get (void)
 Function for getting the output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_set (uint16_t value)
 Function for setting the output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_or_set (uint16_t value)
 Function for enabling the specified output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_clear_set (uint16_t value)
 Function for disabling the specified output values.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_get (void)
 Function for getting the buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_set (uint32_t value)
 Function for setting the buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_or_set (uint16_t value)
 Function for enabling the specified buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_clear_set (uint16_t value)
 Function for disabling the specified buffered output values.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_reversed_byte_get (void)
 Function for getting the buffered output values, reversed in each byte.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_set (uint32_t value)
 Function for setting the buffered output values, reversed in each byte.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_or_set (uint16_t value)
 Function for enabling the specified buffered output values, reversed in each byte.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_clear_set (uint16_t value)
 Function for disabling the specified buffered output values, reversed in each byte.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_reversed_word_get (void)
 Function for getting the buffered output values, reversed in each word.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_set (uint32_t value)
 Function for setting the buffered output values, reversed in the whole word.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_or_set (uint16_t value)
 Function for enabling the specified buffered output values, reversed in the whole word.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_clear_set (uint16_t value)
 Function for disabling the specified buffered output values, reversed in the whole word.
 
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_buffered_dirty_check (void)
 Function for retrieving the dirty status of buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_set (uint16_t mask)
 Function for setting the output toggle mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_buffered_set (uint16_t mask)
 Function for setting the buffered output toggle mask.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_set (uint32_t value)
 Function for setting the combined output and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_or_set (uint32_t value)
 Function for enabling the specified combined output and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_clear_set (uint32_t value)
 Function for disabling the specified combined output and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_toggle_set (uint32_t mask)
 Function for setting the combined output and buffered output toggle mask.
 
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_combined_dirty_check (void)
 Function for retrieving the dirty status of combined output and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_get (nrf_vpr_csr_vio_mode_out_t *p_mode)
 Function for getting the configuration of output mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_set (nrf_vpr_csr_vio_mode_out_t const *p_mode)
 Function for setting the configuration of output mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_buffered_get (nrf_vpr_csr_vio_mode_out_t *p_mode)
 Function for getting the buffered configuration of output mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_buffered_set (nrf_vpr_csr_vio_mode_out_t const *p_mode)
 Function for setting the buffered configuration of output mode.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_ctrl_buffered_set (nrf_vpr_csr_vio_shift_ctrl_t const *p_shift_ctrl)
 Function for setting the buffered shift control register configuration.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_ctrl_buffered_get (nrf_vpr_csr_vio_shift_ctrl_t *p_shift_ctrl)
 Function for getting the buffered shift control register configuration.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_get (nrf_vpr_csr_vio_config_t *p_config)
 Function for getting the VIO configuration.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_set (nrf_vpr_csr_vio_config_t const *p_config)
 Function for setting the VIO configuration.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_input_sel_enable (void)
 Function for setting the VIO configuration's input pin to sample on separate pin.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_input_sel_disable (void)
 Function for setting the VIO configuration's input pin to sample on same OUT pin.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_dirout_get (void)
 Function for getting the combined pin directions mask and output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_set (uint32_t value)
 Function for setting the combined pin directions mask and output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_or_set (uint32_t value)
 Function for enabling the combined pin directions mask and output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_clear_set (uint32_t value)
 Function for disabling the combined pin directions mask and output values.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_dirout_buffered_get (void)
 Function for getting the combined buffered pin directions mask and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_set (uint32_t value)
 Function for getting the combined buffered pin directions mask and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_or_set (uint32_t value)
 Function for enabling the combined buffered pin directions mask and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_clear_set (uint32_t value)
 Function for disabling the combined buffered pin directions mask and buffered output values.
 
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_dirout_buffered_dirty_check (void)
 Function for retrieving the dirty status of combined buffered pin directions mask and buffered output values.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_toggle_set (uint32_t mask)
 Function for setting the combined pin directions and output toggle masks.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_toggle_buffered_set (uint32_t mask)
 Function for setting the combined buffered pin directions and buffered output toggle masks.
 
NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_in_get (void)
 Function for getting the number of frames to be shifted from buffered input before new data is required.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_in_set (uint8_t cnt)
 Function for setting the number of frames to be shifted from buffered input before new data is required.
 
NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_out_get (void)
 Function for getting the number of frames to be shifted from buffered output before new data is required.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_out_set (uint8_t cnt)
 Function for setting the number of frames to be shifted from buffered output before new data is required.
 
NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_out_buffered_get (void)
 Function for getting the buffered number of frames to be shifted from buffered output before new data is required.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_out_buffered_set (uint8_t cnt)
 Function for setting the buffered number of frames to be shifted from buffered output before new data is required.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_set (uint32_t value)
 Function for setting the buffered unshifted parts of OUT register.
 
NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_unshifted_buffered_get (void)
 Function for getting the buffered unshifted parts of OUT register.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_trigger_set (nrf_vpr_csr_vio_out_unshifted_trigger_t trigger)
 Function for setting the trigger for buffered unshifted parts of OUT register.
 
NRF_STATIC_INLINE nrf_vpr_csr_vio_out_unshifted_trigger_t nrf_vpr_csr_vio_out_unshifted_buffered_trigger_get (void)
 Function for getting the trigger for buffered unshifted parts of OUT register.
 
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_toggle_set (uint32_t mask)
 Function for setting the toggle mask for buffered unshifted parts of OUT register.
 
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_unshifted_buffered_dirty_check (void)
 Function for checking the dirty status of buffered unshifted parts of OUT register.
 

Detailed Description

Hardware access layer for managing the VPR RISC-V CPU Control and Status Registers for VPR IO (VPR CSR VIO).

Enumeration Type Documentation

◆ nrf_vpr_csr_vio_mode_in_t

Input modes.

Enumerator
NRF_VPR_CSR_VIO_MODE_IN_CONTINUOUS 

Continuous sampling (if CPU is not sleeping).

NRF_VPR_CSR_VIO_MODE_IN_EVENT 

Sampling on Counter 1 event.

NRF_VPR_CSR_VIO_MODE_IN_SHIFT 

Sampling and shifting on Counter 1 event.

◆ nrf_vpr_csr_vio_out_unshifted_trigger_t

Unshifted pins trigger condition for transferring OUTUB to OUT.

Enumerator
NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTCNT0 

Trigger on counter 0 event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTCNT1 

Trigger on counter 1 event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVIO 

Trigger on specific VIO pin event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVIOANY 

Trigger on change in any VIO pin event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTVTASKSANY 

Trigger on any VIO task event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTSHIFTCNTOUT 

Trigger on shift count out event.

NRF_VPR_CSR_VIO_OUTUBTRIG_IEVENTSHIFTCNTIN 

Trigger on shift count in event.

◆ nrf_vpr_csr_vio_shift_t

Shift mode.

Enumerator
NRF_VPR_CSR_VIO_SHIFT_NONE 

No shifting.

NRF_VPR_CSR_VIO_SHIFT_OUTB 

OUTB used for buffering.

NRF_VPR_CSR_VIO_SHIFT_OUTB_TOGGLE 

OUTB used for buffering, auto-toggle clock line.

Function Documentation

◆ nrf_vpr_csr_vio_config_get()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_get ( nrf_vpr_csr_vio_config_t * p_config)

Function for getting the VIO configuration.

Parameters
[out]p_configPointer to the structure to be filled with VIO configuration.

◆ nrf_vpr_csr_vio_config_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_config_set ( nrf_vpr_csr_vio_config_t const * p_config)

Function for setting the VIO configuration.

Parameters
[in]p_configPointer to the structure with VIO configuration to be set.

◆ nrf_vpr_csr_vio_dir_buffered_dirty_check()

NRF_STATIC_INLINE bool nrf_vpr_csr_vio_dir_buffered_dirty_check ( void )

Function for retrieving the dirty status of buffered pin directions mask.

Return values
trueBuffer is dirty.
falseBuffer is clean.

◆ nrf_vpr_csr_vio_dir_buffered_get()

NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_dir_buffered_get ( void )

Function for getting the buffered pin directions mask.

Returns
Mask of pin directions. 0 is input, 1 is output.

◆ nrf_vpr_csr_vio_dir_buffered_input_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_input_set ( uint16_t value)

Function for setting the specified buffered pins as inputs.

Note
Pins not set to 1 will retain their current setting. They will not be set to output.
Parameters
[in]valueMask of pins to be set as input.

◆ nrf_vpr_csr_vio_dir_buffered_output_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_output_set ( uint16_t value)

Function for setting the specified buffered pins as outputs.

Note
Pins not set to 1 will retain their current setting. They will not be set to input.
Parameters
[in]valueMask of pins to be set as output.

◆ nrf_vpr_csr_vio_dir_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_set ( uint16_t value)

Function for setting the buffered pin directions mask.

Parameters
[in]valueMask of pin directions to be set. 0 is input, 1 is output.

◆ nrf_vpr_csr_vio_dir_buffered_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_toggle_set ( uint16_t mask)

Function for setting the buffered pin directions toggle mask.

Parameters
[in]maskMask of pin directions to be toggled.

◆ nrf_vpr_csr_vio_dir_get()

NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_dir_get ( void )

Function for getting the pin directions mask.

Returns
Mask of pin directions. 0 is input, 1 is output.

◆ nrf_vpr_csr_vio_dir_input_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_input_set ( uint16_t value)

Function for setting the specified pins as inputs.

Note
Pins not set to 1 will retain their current setting. They will not be set to output.
Parameters
[in]valueMask of pins to be set as input.

◆ nrf_vpr_csr_vio_dir_output_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_output_set ( uint16_t value)

Function for setting the specified pins as outputs.

Note
Pins not set to 1 will retain their current setting. They will not be set to input.
Parameters
[in]valueMask of pins to be set as output.

◆ nrf_vpr_csr_vio_dir_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_set ( uint16_t value)

Function for setting the pin directions mask.

Parameters
[in]valueMask of pin directions to be set. 0 is input, 1 is output.

◆ nrf_vpr_csr_vio_dir_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_toggle_set ( uint16_t mask)

Function for setting the pin directions toggle mask.

Parameters
[in]maskMask of pin directions to be toggled.

◆ nrf_vpr_csr_vio_dirout_buffered_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_clear_set ( uint32_t value)

Function for disabling the combined buffered pin directions mask and buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Lower 16 bits determine the buffered output state, while higher 16 bits determine the buffered pin directions.
Parameters
[in]valueMask of pins to be set as input and output states to be set low.

◆ nrf_vpr_csr_vio_dirout_buffered_dirty_check()

NRF_STATIC_INLINE bool nrf_vpr_csr_vio_dirout_buffered_dirty_check ( void )

Function for retrieving the dirty status of combined buffered pin directions mask and buffered output values.

Return values
trueBuffer is dirty.
falseBuffer is clean.

◆ nrf_vpr_csr_vio_dirout_buffered_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_dirout_buffered_get ( void )

Function for getting the combined buffered pin directions mask and buffered output values.

Note
Lower 16 bits determine the buffered output state, while higher 16 bits determine the buffered pin directions.
Returns
Mask of buffered pin directions and buffered output values.

◆ nrf_vpr_csr_vio_dirout_buffered_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_or_set ( uint32_t value)

Function for enabling the combined buffered pin directions mask and buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Lower 16 bits determine the buffered output state, while higher 16 bits determine the buffered pin directions.
Parameters
[in]valueMask of buffered pins to be set as output and buffered output states to be set high.

◆ nrf_vpr_csr_vio_dirout_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_buffered_set ( uint32_t value)

Function for getting the combined buffered pin directions mask and buffered output values.

Note
Lower 16 bits determine the buffered output state, while higher 16 bits determine the buffered pin directions.
Parameters
[in]valueMask of buffered pin directions and buffered output values.

◆ nrf_vpr_csr_vio_dirout_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_clear_set ( uint32_t value)

Function for disabling the combined pin directions mask and output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Lower 16 bits determine the output state, while higher 16 bits determine the pin directions.
Parameters
[in]valueMask of pins to be set as input and output states to be set low.

◆ nrf_vpr_csr_vio_dirout_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_dirout_get ( void )

Function for getting the combined pin directions mask and output values.

Note
Lower 16 bits determine the output state, while higher 16 bits determine the pin directions.
Returns
Mask of pin directions and output values.

◆ nrf_vpr_csr_vio_dirout_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_or_set ( uint32_t value)

Function for enabling the combined pin directions mask and output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Lower 16 bits determine the output state, while higher 16 bits determine the pin directions.
Parameters
[in]valueMask of pins to be set as output and output states to be set high.

◆ nrf_vpr_csr_vio_dirout_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_set ( uint32_t value)

Function for setting the combined pin directions mask and output values.

Note
Lower 16 bits determine the output state, while higher 16 bits determine the pin directions.
Parameters
[in]valueMask of pin directions and output values.

◆ nrf_vpr_csr_vio_dirout_toggle_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_toggle_buffered_set ( uint32_t mask)

Function for setting the combined buffered pin directions and buffered output toggle masks.

Note
Lower 16 bits determine the buffered output toggle, while higher 16 bits determine the buffered pin directions toggle.
Parameters
[in]maskMask of values to be toggled.

◆ nrf_vpr_csr_vio_dirout_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_dirout_toggle_set ( uint32_t mask)

Function for setting the combined pin directions and output toggle masks.

Note
Lower 16 bits determine the output toggle, while higher 16 bits determine the pin directions toggle.
Parameters
[in]maskMask of values to be toggled.

◆ nrf_vpr_csr_vio_in_buffered_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_in_buffered_get ( void )

Function for getting the buffered input values.

Returns
Mask of input states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_in_buffered_reversed_byte_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_in_buffered_reversed_byte_get ( void )

Function for getting the buffered input values, reversed in each byte.

Returns
Mask of input states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_in_get()

NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_in_get ( void )

Function for getting the input values.

Returns
Mask of input states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_mode_in_buffered_get()

NRF_STATIC_INLINE nrf_vpr_csr_vio_mode_in_t nrf_vpr_csr_vio_mode_in_buffered_get ( void )

Function for getting the buffered input mode.

Returns
Input mode.

◆ nrf_vpr_csr_vio_mode_in_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_in_buffered_set ( nrf_vpr_csr_vio_mode_in_t mode)

Function for setting the buffered input mode.

Parameters
[in]modeInput mode to be set.

◆ nrf_vpr_csr_vio_mode_in_get()

NRF_STATIC_INLINE nrf_vpr_csr_vio_mode_in_t nrf_vpr_csr_vio_mode_in_get ( void )

Function for getting the input mode.

Returns
Input mode.

◆ nrf_vpr_csr_vio_mode_in_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_in_set ( nrf_vpr_csr_vio_mode_in_t mode)

Function for setting the input mode.

Parameters
[in]modeInput mode to be set.

◆ nrf_vpr_csr_vio_mode_out_buffered_get()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_buffered_get ( nrf_vpr_csr_vio_mode_out_t * p_mode)

Function for getting the buffered configuration of output mode.

Parameters
[out]p_modePointer to the structure to be filled with buffered output mode.

◆ nrf_vpr_csr_vio_mode_out_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_buffered_set ( nrf_vpr_csr_vio_mode_out_t const * p_mode)

Function for setting the buffered configuration of output mode.

Parameters
[in]p_modePointer to the structure with buffered output mode to be set.

◆ nrf_vpr_csr_vio_mode_out_get()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_get ( nrf_vpr_csr_vio_mode_out_t * p_mode)

Function for getting the configuration of output mode.

Parameters
[out]p_modePointer to the structure to be filled with output mode.

◆ nrf_vpr_csr_vio_mode_out_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_mode_out_set ( nrf_vpr_csr_vio_mode_out_t const * p_mode)

Function for setting the configuration of output mode.

Parameters
[in]p_modePointer to the structure with output mode to be set.

◆ nrf_vpr_csr_vio_out_buffered_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_clear_set ( uint16_t value)

Function for disabling the specified buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set low.

◆ nrf_vpr_csr_vio_out_buffered_dirty_check()

NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_buffered_dirty_check ( void )

Function for retrieving the dirty status of buffered output values.

Return values
trueBuffer is dirty.
fasleBuffer is clean.

◆ nrf_vpr_csr_vio_out_buffered_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_get ( void )

Function for getting the buffered output values.

Returns
Mask of output states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_buffered_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_or_set ( uint16_t value)

Function for enabling the specified buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_byte_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_clear_set ( uint16_t value)

Function for disabling the specified buffered output values, reversed in each byte.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set low.

◆ nrf_vpr_csr_vio_out_buffered_reversed_byte_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_reversed_byte_get ( void )

Function for getting the buffered output values, reversed in each byte.

Returns
Mask of output states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_byte_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_or_set ( uint16_t value)

Function for enabling the specified buffered output values, reversed in each byte.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_byte_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_byte_set ( uint32_t value)

Function for setting the buffered output values, reversed in each byte.

Parameters
[in]valueMask of output states to be set. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_word_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_clear_set ( uint16_t value)

Function for disabling the specified buffered output values, reversed in the whole word.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set low.

◆ nrf_vpr_csr_vio_out_buffered_reversed_word_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_buffered_reversed_word_get ( void )

Function for getting the buffered output values, reversed in each word.

Returns
Mask of output states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_word_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_or_set ( uint16_t value)

Function for enabling the specified buffered output values, reversed in the whole word.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set high.

◆ nrf_vpr_csr_vio_out_buffered_reversed_word_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_reversed_word_set ( uint32_t value)

Function for setting the buffered output values, reversed in the whole word.

Parameters
[in]valueMask of output states to be set. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_buffered_set ( uint32_t value)

Function for setting the buffered output values.

Parameters
[in]valueMask of output states to be set. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_clear_set ( uint16_t value)

Function for disabling the specified output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set low.

◆ nrf_vpr_csr_vio_out_combined_clear_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_clear_set ( uint32_t value)

Function for disabling the specified combined output and buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set low.

◆ nrf_vpr_csr_vio_out_combined_dirty_check()

NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_combined_dirty_check ( void )

Function for retrieving the dirty status of combined output and buffered output values.

Return values
trueBuffer is dirty.
fasleBuffer is clean.

◆ nrf_vpr_csr_vio_out_combined_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_or_set ( uint32_t value)

Function for enabling the specified combined output and buffered output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set high.

◆ nrf_vpr_csr_vio_out_combined_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_set ( uint32_t value)

Function for setting the combined output and buffered output values.

Note
Lower 16 bits determine the output state, while higher 16 bits determine the buffered output state.
Parameters
[in]valueMask of output states to be set. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_combined_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_toggle_set ( uint32_t mask)

Function for setting the combined output and buffered output toggle mask.

Note
Lower 16 bits determine the output toggle, while higher 16 bits determine the buffered output toggle.
Parameters
[in]maskMask of output to be toggled.

◆ nrf_vpr_csr_vio_out_get()

NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_out_get ( void )

Function for getting the output values.

Returns
Mask of output states. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_or_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_or_set ( uint16_t value)

Function for enabling the specified output values.

Note
Pins not set to 1 will retain their current value. They will not be modified.
Parameters
[in]valueMask of output states to be set high.

◆ nrf_vpr_csr_vio_out_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_set ( uint16_t value)

Function for setting the output values.

Parameters
[in]valueMask of output states to be set. 0 is low, 1 is high.

◆ nrf_vpr_csr_vio_out_toggle_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_buffered_set ( uint16_t mask)

Function for setting the buffered output toggle mask.

Parameters
[in]maskMask of output to be toggled.

◆ nrf_vpr_csr_vio_out_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_set ( uint16_t mask)

Function for setting the output toggle mask.

Parameters
[in]maskMask of output to be toggled.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_dirty_check()

NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_unshifted_buffered_dirty_check ( void )

Function for checking the dirty status of buffered unshifted parts of OUT register.

Return values
trueBuffer is dirty.
falseBuffer is clean.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_get()

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vio_out_unshifted_buffered_get ( void )

Function for getting the buffered unshifted parts of OUT register.

Returns
Buffered unshifted parts of OUT register.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_set ( uint32_t value)

Function for setting the buffered unshifted parts of OUT register.

Parameters
[in]valueBuffered unshifted parts of OUT register.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_toggle_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_toggle_set ( uint32_t mask)

Function for setting the toggle mask for buffered unshifted parts of OUT register.

Parameters
[in]maskMask of buffered unshifted parts of OUT register to be toggled.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_trigger_get()

NRF_STATIC_INLINE nrf_vpr_csr_vio_out_unshifted_trigger_t nrf_vpr_csr_vio_out_unshifted_buffered_trigger_get ( void )

Function for getting the trigger for buffered unshifted parts of OUT register.

Returns
Trigger for buffered unshifted parts of OUT register.

◆ nrf_vpr_csr_vio_out_unshifted_buffered_trigger_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_unshifted_buffered_trigger_set ( nrf_vpr_csr_vio_out_unshifted_trigger_t trigger)

Function for setting the trigger for buffered unshifted parts of OUT register.

Parameters
[in]triggerTrigger for buffered unshifted parts of OUT register.

◆ nrf_vpr_csr_vio_shift_cnt_in_get()

NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_in_get ( void )

Function for getting the number of frames to be shifted from buffered input before new data is required.

Returns
Number of frames to be shifted from buffered input before new data is required.

◆ nrf_vpr_csr_vio_shift_cnt_in_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_in_set ( uint8_t cnt)

Function for setting the number of frames to be shifted from buffered input before new data is required.

Parameters
[in]cntNumber for frames to be set.

◆ nrf_vpr_csr_vio_shift_cnt_out_buffered_get()

NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_out_buffered_get ( void )

Function for getting the buffered number of frames to be shifted from buffered output before new data is required.

Returns
Buffered number of frames to be shifted from buffered output before new data is required.

◆ nrf_vpr_csr_vio_shift_cnt_out_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_out_buffered_set ( uint8_t cnt)

Function for setting the buffered number of frames to be shifted from buffered output before new data is required.

Parameters
[in]cntNumber for frames to be set.

◆ nrf_vpr_csr_vio_shift_cnt_out_get()

NRF_STATIC_INLINE uint8_t nrf_vpr_csr_vio_shift_cnt_out_get ( void )

Function for getting the number of frames to be shifted from buffered output before new data is required.

Returns
Number of frames to be shifted from buffered output before new data is required.

◆ nrf_vpr_csr_vio_shift_cnt_out_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_cnt_out_set ( uint8_t cnt)

Function for setting the number of frames to be shifted from buffered output before new data is required.

Parameters
[in]cntNumber for frames to be set.

◆ nrf_vpr_csr_vio_shift_ctrl_buffered_get()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_ctrl_buffered_get ( nrf_vpr_csr_vio_shift_ctrl_t * p_shift_ctrl)

Function for getting the buffered shift control register configuration.

Parameters
[out]p_shift_ctrlPointer to the structure to be filled with buffered shift control configuration.

◆ nrf_vpr_csr_vio_shift_ctrl_buffered_set()

NRF_STATIC_INLINE void nrf_vpr_csr_vio_shift_ctrl_buffered_set ( nrf_vpr_csr_vio_shift_ctrl_t const * p_shift_ctrl)

Function for setting the buffered shift control register configuration.

Parameters
[in]p_shift_ctrlPointer to the structure with buffered shift control configuration to be set.