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... | |
Enumerations | |
enum | nrf_vpr_csr_vio_out_shift_t { NRF_VPR_CSR_VIO_OUT_SHIFT_1 = VPRCSR_NORDIC_OUTMODE_SHIFSIZE_SHIFT1 , NRF_VPR_CSR_VIO_OUT_SHIFT_2 = VPRCSR_NORDIC_OUTMODE_SHIFSIZE_SHIFT2 , NRF_VPR_CSR_VIO_OUT_SHIFT_4 = VPRCSR_NORDIC_OUTMODE_SHIFSIZE_SHIFT4 , NRF_VPR_CSR_VIO_OUT_SHIFT_8 = VPRCSR_NORDIC_OUTMODE_SHIFSIZE_SHIFT8 , NRF_VPR_CSR_VIO_OUT_SHIFT_16 = VPRCSR_NORDIC_OUTMODE_SHIFSIZE_SHIFT16 } |
Shift sizes for output. 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 } |
Input modes. 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 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 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 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 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 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 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_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 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 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 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. | |
Hardware access layer for managing the VPR RISC-V CPU Control and Status Registers for VPR IO (VPR CSR VIO).
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_dir_buffered_dirty_check | ( | void | ) |
Function for retrieving the dirty status of buffered pin directions mask.
true | Buffer is dirty. |
fasle | Buffer is clean. |
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.
[in] | value | Mask of pin directions to be set. 0 is input, 1 is output. |
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_buffered_toggle_set | ( | uint16_t | mask | ) |
Function for setting the buffered pin directions toggle mask.
[in] | mask | Mask of pin directions to be toggled. |
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.
[in] | value | Mask of pin directions to be set. 0 is input, 1 is output. |
NRF_STATIC_INLINE void nrf_vpr_csr_vio_dir_toggle_set | ( | uint16_t | mask | ) |
Function for setting the pin directions toggle mask.
[in] | mask | Mask of pin directions to be toggled. |
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.
true | Buffer is dirty. |
fasle | Buffer is clean. |
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.
[in] | value | Mask of buffered pin directions and buffered output values. |
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.
[in] | value | Mask of pin directions and output values. |
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.
[in] | mask | Mask of values to be toggled. |
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.
[in] | mask | Mask of values to be toggled. |
NRF_STATIC_INLINE uint16_t nrf_vpr_csr_vio_in_get | ( | void | ) |
Function for getting the input values.
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.
[in] | mode | Input mode to be set. |
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.
[out] | p_mode | Pointer to the structure to be filled with 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.
[in] | p_mode | Pointer to the structure with output mode to be set. |
NRF_STATIC_INLINE bool nrf_vpr_csr_vio_out_buffered_dirty_check | ( | void | ) |
Function for retrieving the dirty status of buffered output values.
true | Buffer is dirty. |
fasle | Buffer is clean. |
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.
[in] | value | Mask of output states to be set. 0 is low, 1 is high. |
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.
true | Buffer is dirty. |
fasle | Buffer is clean. |
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_combined_set | ( | uint32_t | value | ) |
Function for setting the combined output and buffered output values.
[in] | value | Mask of output states to be set. 0 is low, 1 is high. |
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.
[in] | mask | Mask of output to be toggled. |
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.
[in] | value | Mask of output states to be set. 0 is low, 1 is high. |
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_buffered_set | ( | uint16_t | mask | ) |
Function for setting the buffered output toggle mask.
[in] | mask | Mask of output to be toggled. |
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_toggle_set | ( | uint16_t | mask | ) |
Function for setting the output toggle mask.
[in] | mask | Mask of output to be toggled. |