Sensor data streaming interface.
More...
Sensor data streaming interface.
VSI Sensor interface use case is implemented for Arm FVPs based on the general-purpose Virtual Streaming Interface (VSI).
The use of common sensor driver API simplifies re-targeting of the application code between virtual and physical devices. Currently sensor driver implementations are available for the following platforms:
- Arm FVPs using VSI with an interface to Python script that streams local SDS files.
- ST Microelectronics B-U585I-IOT02A Discovery kit for IoT which uses on-board MEMS sensors (Microphone, 3D Accelerometer, 3D Gyroscope, Temperature)
and support for other hardware platforms can be added following the same concept.
The table below references the files that implement the sensor peripheral:
◆ sensorStatus_t
Status.
Structure with information about the sensor status. The data fields encode active and buffer state flags.
Returned by:
Data Fields |
uint32_t |
active: 1 |
Active state: 1=enabled(active), 0=disabled(inactive) |
uint32_t |
overflow: 1 |
Overflow flag (cleared on sensorGetStatus) |
uint32_t |
reserved: 30 |
|
◆ sensorConfig_t
Configuration.
Structure with sensor configuration parameters.
Returned by:
Data Fields |
char * |
name |
Sensor name. |
uint32_t |
dma_mode |
DMA mode: 1=DMA, 0=non-DMA (FIFO) |
uint32_t |
sample_size |
Sample size in bytes. |
union sensorConfig_t.u |
u |
Union with FIFO and DMA configuration structures. |
◆ sensorConfig_t.u
◆ sensorConfig_t.u.fifo
struct sensorConfig_t.u.fifo |
Data Fields |
uint32_t |
sample_interval |
Sample interval in microseconds. |
uint32_t |
fifo_size |
Sample FIFO size in bytes. |
uint32_t |
data_threshold |
Data event threshold in number of samples. |
◆ sensorConfig_t.u.dma
struct sensorConfig_t.u.dma |
Data Fields |
uint32_t |
block_interval |
Block interval in microseconds. |
uint32_t |
block_size |
Block size in bytes. |
uint32_t |
block_num |
Number of blocks. |