Macros | |
#define | SCUIOC_SETFIFO _SCUIOC(0x0001) |
#define | SCUIOC_FREEFIFO _SCUIOC(0x0002) |
#define | SCUIOC_SETSAMPLE _SCUIOC(0x0003) |
#define | SCUIOC_SETSIGNCONV _SCUIOC(0x0004) |
#define | SCUIOC_SETOGADJUST _SCUIOC(0x0005) |
#define | SCUIOC_CLROGADJUST _SCUIOC(0x0006) |
#define | SCUIOC_SETFILTER _SCUIOC(0x0007) |
#define | SCUIOC_SETNOTIFY _SCUIOC(0x0008) |
#define | SCUIOC_SETELEMENTS _SCUIOC(0x0009) |
#define | SCUIOC_SETDECIMATION _SCUIOC(0x000a) |
#define | SCUIOC_SETWATERMARK _SCUIOC(0x000b) |
#define | SCUIOC_START _SCUIOC(0x0010) |
#define | SCUIOC_STOP _SCUIOC(0x0011) |
#define | SCUIOC_SETFIFOMODE _SCUIOC(0x0012) |
#define | SCUIOC_DELFIFODATA _SCUIOC(0x0013) |
#define SCUIOC_SETFIFO _SCUIOC(0x0001) |
Set FIFO size used by sequencer
uint16_t | FIFO size in bytes |
#define SCUIOC_FREEFIFO _SCUIOC(0x0002) |
Free FIFO used by sequencer
None |
#define SCUIOC_SETSAMPLE _SCUIOC(0x0003) |
Set sequencer sampling rate
uint8_t | sampling rate |
#define SCUIOC_SETSIGNCONV _SCUIOC(0x0004) |
Enable/Disable sign conversion preprocessing
unsigned | long: 0 = disable, 1 = enable |
#define SCUIOC_SETOGADJUST _SCUIOC(0x0005) |
Set offset/gain adjustment parameter
Pointer | to struct adjust_xyz_s. |
#define SCUIOC_CLROGADJUST _SCUIOC(0x0006) |
Clear offset/gain adjustment parameter
None |
#define SCUIOC_SETFILTER _SCUIOC(0x0007) |
Set IIR filter coefficiencies
Pointer | to struct math_filter_s |
#define SCUIOC_SETNOTIFY _SCUIOC(0x0008) |
Set event notifier parameters
Set event notifier. This command must use with IIR filter, so it will be error when no filter set by SCUIOC_SETFILTER.
Pointer | to struct scuev_notify_s |
#define SCUIOC_SETELEMENTS _SCUIOC(0x0009) |
Set elements per sample
SCU can be treat 3 axis sample data as 1 or 2 axis data. For example, user can be used to detect via event notifier, about the board is tilting, by X and Y axis data from accelerometer. This setting will be affected for IIR Filter and event notifier.
unsigned | long: 1 - 3 |
#define SCUIOC_SETDECIMATION _SCUIOC(0x000a) |
Set decimation parameters (Decimator only)
Pointer | to struct decimation_s |
#define SCUIOC_SETWATERMARK _SCUIOC(0x000b) |
Set FIFO sample data watermark
Pointer | of struct scufifo_wm_s |
#define SCUIOC_START _SCUIOC(0x0010) |
Start sequencer
None |
#define SCUIOC_STOP _SCUIOC(0x0011) |
Stop sequencer
None |
#define SCUIOC_SETFIFOMODE _SCUIOC(0x0012) |
Set FIFO overwrite mode
unsigned | long: 0 = overwrite disable, 1 = overwrite enable |
#define SCUIOC_DELFIFODATA _SCUIOC(0x0013) |
Delete FIFO data
uint16_t | delete size |