Loading...
Searching...
No Matches
KX134_1211 Struct Reference

Inherits SPI.

Data Fields

SPI base
 Parent SPI interface.
 
float sensitivity
 Accelerometer sensitivity.
 
void(* update )(struct KX134_1211 *)
 Accel update method.
 
void(* readAccel )(struct KX134_1211 *, float *)
 Accel read method.
 
void(* readRawBytes )(struct KX134_1211 *, uint8_t *)
 Raw accel read method.
 
void(* processRawBytes )(struct KX134_1211 *, uint8_t *, float *)
 Process raw accel method.
 
uint8_t axes [KX134_1211_DATA_COUNT]
 Array defining axes of mounting.
 
int8_t sign [KX134_1211_DATA_COUNT]
 Array defining sign of axes.
 
uint8_t rawAccelData [KX134_1211_DATA_TOTAL]
 Raw accelerations array.
 
float accelData [KX134_1211_DATA_COUNT]
 Processed accelerations array.
 
- Data Fields inherited from SPI
DeviceType device
 Enum specifier for device type.
 
SPI_TypeDef * interface
 Pointer to SPI interface struct.
 
GPIO_TypeDef * port
 Pointer to GPIO port struct.
 
unsigned long cs
 Device chip select address.
 
void(* send )(struct SPI *, uint16_t)
 SPI send method.
 
void(* receive )(struct SPI *, volatile uint16_t *)
 SPI receive method.
 
uint16_t(* transmit )(struct SPI *, uint16_t)
 SPI transmit method.
 

Detailed Description

Definition at line 53 of file kx134_1211.h.

Field Documentation

◆ update

void(* update) (struct KX134_1211 *)

Accel update method.

See also
KX134_1211_update

Definition at line 56 of file kx134_1211.h.

◆ readAccel

void(* readAccel) (struct KX134_1211 *, float *)

Accel read method.

See also
KX134_1211_readAccel

Definition at line 57 of file kx134_1211.h.

◆ readRawBytes

void(* readRawBytes) (struct KX134_1211 *, uint8_t *)

Raw accel read method.

See also
KX134_1211_readRawBytes

Definition at line 58 of file kx134_1211.h.

◆ processRawBytes

void(* processRawBytes) (struct KX134_1211 *, uint8_t *, float *)

Process raw accel method.

See also
KX134_1211_processRawBytes

Definition at line 59 of file kx134_1211.h.


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