Main include for ABI (AirBorneInterface).
#define ABI_BROADCAST
Broadcast address.
int32_t p
in rad/s with INT32_RATE_FRAC
int32_t r
in rad/s with INT32_RATE_FRAC
int32_t q
in rad/s with INT32_RATE_FRAC
enum SPIClockPolarity cpol
clock polarity control
enum SPIClockPhase cpha
clock phase control
enum SPISlaveSelect select
slave selection behavior
SPICallback after_cb
NULL or function called after the transaction.
enum SPIDataSizeSelect dss
data transfer word size
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
uint16_t input_length
number of data words to read
enum SPIClockDiv cdiv
prescaler of main clock to use as SPI clock
volatile uint8_t * input_buf
pointer to receive buffer for DMA
uint8_t slave_idx
slave id: SPI_SLAVE0 to SPI_SLAVE4
enum SPIBitOrder bitorder
MSB/LSB order.
uint16_t output_length
number of data words to write
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
@ SPICpolIdleHigh
CPOL = 1.
@ SPISelectUnselect
slave is selected before transaction and unselected after
SPI transaction structure.
struct spi_transaction high_speed_logger_spi_link_transaction
static struct imu_accel_t * hsl_accel
static volatile bool high_speed_logger_spi_link_ready
static void high_speed_logger_spi_link_trans_cb(struct spi_transaction *trans)
void high_speed_logger_spi_link_periodic(void)
struct high_speed_logger_spi_link_data high_speed_logger_spi_link_data
static struct imu_gyro_t * hsl_gyro
void high_speed_logger_spi_link_init(void)
static struct imu_mag_t * hsl_mag
struct imu_accel_t * imu_get_accel(uint8_t sender_id, bool create)
Find or create the accel in the imu structure.
struct imu_gyro_t * imu_get_gyro(uint8_t sender_id, bool create)
Find or create the gyro in the imu structure.
struct imu_mag_t * imu_get_mag(uint8_t sender_id, bool create)
Find or create the mag in the imu structure.
Inertial Measurement Unit interface.
struct Int32Vect3 unscaled
Last unscaled values in sensor frame.
struct Int32Rates unscaled
Last unscaled values in sensor frame.
struct Int32Vect3 unscaled
Last unscaled values in sensor frame.
Architecture independent SPI (Serial Peripheral Interface) API.
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.