SI114X_IRQ_SAMPLE Struct Reference
[Si114x]

Si114x Sample Data Structure. More...

#include <si114x_types.h>

Collaboration diagram for SI114X_IRQ_SAMPLE:
Collaboration graph
[legend]

Data Fields

uint16_t sequence
 sequence number
uint16_t timestamp
 16-bit Timestamp to record
uint8_t pad
 8-bit padding
uint8_t irqstat
 8-bit IRQ Status
uint16_t vis
 VIS Measurement.
uint16_t ir
 IR Measurement.
uint16_t ps1
 PS1 Measurement.
uint16_t ps2
 PS2 Measurement.
uint16_t ps3
 PS3 Measurement.
uint16_t aux
 AUX Measurement.

Detailed Description

Si114x Sample Data Structure.

The SI114X_IRQ_SAMPLE Data is populated within a low-level interrupt handler.

**sequence** is not directly from the Si113x/4x, but rather, the low-level interrupt handler can increment a rolling counter whenever a sample is made. **sequence** is provided a convenience to upper software layers.

**timestamp** is not from the Si113x/4x directly. The low_level interrupt handler is expected to use any convenient time reference associated with the sample. This will allow the upper layers to have a sense of time.

**irqstat**, **vis**, **ir**, **ps1**, **ps2**, **ps3** and **aux** are directly from the Si113x/4x. Beginning with **irqstat**, these members are roughly in the order of I2C Registers 0x21 to 0x2D.

Note:
**ps1**, **ps2** and **ps3** are not used by the Si1132.
**Si1132** reports UVINDEX in **aux**.

Definition at line 90 of file si114x_types.h.


Field Documentation

AUX Measurement.

Definition at line 101 of file si114x_types.h.

IR Measurement.

Definition at line 97 of file si114x_types.h.

8-bit IRQ Status

Definition at line 95 of file si114x_types.h.

8-bit padding

Definition at line 94 of file si114x_types.h.

PS1 Measurement.

Definition at line 98 of file si114x_types.h.

PS2 Measurement.

Definition at line 99 of file si114x_types.h.

PS3 Measurement.

Definition at line 100 of file si114x_types.h.

sequence number

Definition at line 92 of file si114x_types.h.

16-bit Timestamp to record

Definition at line 93 of file si114x_types.h.

VIS Measurement.

Definition at line 96 of file si114x_types.h.


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