Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Data Structures | |
struct | PIR_State_t |
Macros | |
#define | CLOCK 10000 /* 10KHz */ |
#define | INHB_FACTOR 2048 |
Functions | |
static int32_t | pir_init (uint8_t clkdiv, uint8_t etime, uint8_t itime, uint8_t atten) |
static int32_t | pir_enable_wakeup (void *cb) |
static int32_t | pir_disable_wakeup (void) |
static int32_t | pir_disable (void) |
PIR_Device_t * | PIR_devRequest (void) |
The instance of RTC device. More... | |
void | PIR_Handler (void) |
int32_t | PIR_devInit (PIR_Device_t *dev, uint8_t clkdiv, uint8_t etime, uint8_t itime, uint8_t atten) |
Initialize PIR settings. More... | |
int32_t | PIR_devEnableWakeup (PIR_Device_t *dev, void *cb) |
Enable PIR Wakeup. More... | |
int32_t | PIR_devDisableWakeup (PIR_Device_t *dev) |
Disable PIR Wakeup. More... | |
int32_t | PIR_devDisable (PIR_Device_t *dev) |
Disable PIR. More... | |
Variables | |
PIR_State_t | PIR_State |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
#define CLOCK 10000 /* 10KHz */ |
#define INHB_FACTOR 2048 |
int32_t PIR_devDisable | ( | PIR_Device_t * | dev | ) |
Disable PIR.
dev | The pointer to PIR device. |
int32_t PIR_devDisableWakeup | ( | PIR_Device_t * | dev | ) |
Disable PIR Wakeup.
dev | The pointer to PIR device. |
int32_t PIR_devEnableWakeup | ( | PIR_Device_t * | dev, |
void * | cb | ||
) |
Enable PIR Wakeup.
dev | The pointer to PIR device. |
cb | The pointer to the call back function for the wakeup interrupt. |
int32_t PIR_devInit | ( | PIR_Device_t * | dev, |
uint8_t | clkdiv, | ||
uint8_t | etime, | ||
uint8_t | itime, | ||
uint8_t | atten | ||
) |
Initialize PIR settings.
dev | The pointer to PIR device. |
clkdiv | The setting for clock divider. The valid values: 8,16,24,32 |
etime | The event time in decisecond. |
itime | The inhibit time in seconds. |
atten | The attenuation in dB. The valid value 0 to 26 dB. |
PIR_Device_t* PIR_devRequest | ( | void | ) |
The instance of RTC device.
Request A PIR Device.
|
static |
|
static |
|
static |
void PIR_Handler | ( | void | ) |
|
static |
PIR_State_t PIR_State |