nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
hrt_xfer_data_t Struct Reference

#include <hrt.h>

Data Fields

volatile uint8_t * data
 Buffer for RX/TX data.
 
uint32_t word_count
 Data length in 4 byte words, calculated as CEIL(buffer_length_bits/32).
 
uint8_t last_word_clocks
 Amount of clock pulses for last word. Due to hardware limitation, in case when last word clock pulse count is 1, the penultimate word has to share its bits with last word, for example: buffer length = 36bits, bus_width = QUAD, last_word_clocks would be:(buffer_length%32)/QUAD = 1 so: penultimate_word_clocks = 32-BITS_IN_BYTE last_word_clocks = (buffer_length%32)/QUAD + BITS_IN_BYTE last_word = penultimate_word>>24 | last_word<<8.
 
uint8_t penultimate_word_clocks
 Amount of clock pulses for penultimate word. For more info see last_word_clocks.
 
uint32_t last_word
 Value of last word. For more info see last_word_clocks.
 
hrt_fun_out_t fun_out
 Function for writing to buffered out register.
 

The documentation for this struct was generated from the following file: