File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
applications/sdp/mspi/src/hrt Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 1010/* Hardware requirement, to get n shifts SHIFTCNTB register has to be set to n-1*/
1111#define SHIFTCNTB_VALUE (shift_count ) (shift_count - 1)
1212
13- /** @brief Shift control configuration. */
14- typedef struct {
15- uint8_t shift_count ;
16- nrf_vpr_csr_vio_shift_t out_mode ;
17- uint8_t frame_width ;
18- nrf_vpr_csr_vio_mode_in_t in_mode ;
19- } nrf_vpr_csr_vio_shift_ctrl_t ;
20-
21- NRF_STATIC_INLINE void
22- nrf_vpr_csr_vio_shift_ctrl_buffered_set (nrf_vpr_csr_vio_shift_ctrl_t const * p_shift_ctrl )
23- {
24- uint32_t reg =
25- ((p_shift_ctrl -> shift_count << VPRCSR_NORDIC_SHIFTCTRLB_SHIFTCNTB_VALUE_Pos ) &
26- VPRCSR_NORDIC_SHIFTCTRLB_SHIFTCNTB_VALUE_Msk ) |
27- ((p_shift_ctrl -> out_mode << VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_MODE_Pos ) &
28- VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_MODE_Msk ) |
29- ((p_shift_ctrl -> frame_width << VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_FRAMEWIDTH_Pos ) &
30- VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_FRAMEWIDTH_Msk ) |
31- ((p_shift_ctrl -> in_mode << VPRCSR_NORDIC_SHIFTCTRLB_INMODEB_MODE_Pos ) &
32- VPRCSR_NORDIC_SHIFTCTRLB_INMODEB_MODE_Msk );
33-
34- nrf_csr_write (VPRCSR_NORDIC_SHIFTCTRLB , reg );
35- }
36-
37- NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_or_set (uint16_t value )
38- {
39- nrf_csr_set_bits (VPRCSR_NORDIC_OUT , value );
40- }
41-
42- NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_clear_set (uint16_t value )
43- {
44- nrf_csr_clear_bits (VPRCSR_NORDIC_OUT , value );
45- }
46-
4713static const nrf_vpr_csr_vio_shift_ctrl_t write_final_shift_ctrl_cfg = {
4814 .shift_count = 1 ,
4915 .out_mode = NRF_VPR_CSR_VIO_SHIFT_NONE ,
You can’t perform that action at this time.
0 commit comments