nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ data_container

uint8_t nrf_sqspi_data_fmt_t::data_container

Size in bits of the container that gets transffered at once The size of the data container affects the bit ordering, depending on the memory buffer endianness and the data bit order.

When the memory endianness is little (default) and the data_bit_order is MSB first, the data is transferred like in this example:

Memory:
| container | container |
MSB 0bvuts_rqpo_nmlk_jihg_fedc_ba98_7654_3210 LSB 0x2000_0004
MSB 0bVUTS_RQPO_NMLK_JIHG_FEDC_BA98_7654_3210 LSB 0x2000_0000
Serial lines:
bits in order: FEDC_BA98_7654_3210_VUTS_RQPO_NMLK_JIHG
fedc_ba98_7654_3210_vuts_rqpo_nmlk_jihg

When the memory endianness is little (default) and the data_bit_order is LSB first, the container size doesn't matter. Data is transferred like in this example:

Memory:
MSB 0bvuts_rqpo_nmlk_jihg_fedc_ba98_7654_3210 LSB 0x2000_0004
MSB 0bVUTS_RQPO_NMLK_JIHG_FEDC_BA98_7654_3210 LSB 0x2000_0000
Serial lines:
bits in order: 0123_4567_89AB_CDEF_GHIJ_KLMN_OPQR_STUV
0123_4567_89ab_cdef_ghij_klmn_opqr_stuv