Functions to configure and sample data from a single device.
More...
Functions to configure and sample data from a single device.
#define AFE_INIT_DEFAULT |
( |
|
X | ) |
|
Value: }
uint8_t S7_S0
Sampling rate (8 bit) :Sampling Rate = 1000/(N+1).
#define LOW_POWER_DISABLE
IRPyro Analog Front End (AFE) register structure definition
Definition at line 191 of file IRPyro_API_single_device_layer.c.
#define CCP_INIT_DEFAULT |
( |
|
X | ) |
|
Value: }
IRPyro Channel Control Package register structure definition
uint8_t status_bit
Status bit : Active (1) / Disable (0)
Definition at line 209 of file IRPyro_API_single_device_layer.c.
#define LOW_POWER_INIT_DEFAULT |
( |
|
X | ) |
|
Value: .UHT = 0xFF, \
.ULT = 0xFF, \
.LHT = 0x00, \
.LLT = 0x00, \
.WT_Threshold = 0x10, \
}
IRPyro Power Settings structure definition
uint8_t S7_S0
sample rate value
Definition at line 253 of file IRPyro_API_single_device_layer.c.
#define NORMAL_POWER_INIT_DEFAULT |
( |
|
X | ) |
|
Value: .UHT = 0xFF, \
.ULT = 0xFF, \
.LHT = 0x00, \
.LLT = 0x00, \
.WT_Threshold = 0x10, \
}
IRPyro Power Settings structure definition
uint8_t S7_S0
sample rate value
Definition at line 238 of file IRPyro_API_single_device_layer.c.
#define WUP_INIT_DEFAULT |
( |
|
X | ) |
|
Value: .ULT = 0xFF, \
.LHT = 0x00, \
.LLT = 0x00, \
.WT_Threshold = 0x10, \
}
uint8_t UHT
Byte 0 to 3 (Upper and Lower thresholds) are the 8 MSB of channel ADC data (unsigned value)...
IRPyro Wake Up Package register structure definition
#define SLEEP_MODE_ONE_CH
Definition at line 227 of file IRPyro_API_single_device_layer.c.
static void AFE_to_bytes |
( |
AFE_reg_type |
AFE_register, |
|
|
uint8_t * |
AFE_byte |
|
) |
| |
|
static |
static void bytes_to_AFE |
( |
uint8_t * |
AFE_bytes, |
|
|
AFE_reg_type * |
AFE_register |
|
) |
| |
|
static |
static void bytes_to_CCP |
( |
uint8_t |
CCP_byte, |
|
|
CCP_reg_type * |
CCP_register |
|
) |
| |
|
static |
static void bytes_to_WUP |
( |
uint8_t * |
WUP_bytes, |
|
|
WUP_reg_type * |
WUP_register |
|
) |
| |
|
static |
static void CCP_to_bytes |
( |
CCP_reg_type |
CCP_register, |
|
|
uint8_t * |
CCP_byte |
|
) |
| |
|
static |
static struct notice IRPyro_checksum |
( |
void |
| ) |
|
|
static |
static void WUP_to_bytes |
( |
WUP_reg_type |
WUP_register, |
|
|
uint8_t * |
WUP_byte |
|
) |
| |
|
static |