|
Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Go to the source code of this file.
Data Structures | |
| struct | PIR_Device_t |
| A structure to represent PIR device. More... | |
Typedefs | |
| typedef void(* | pir_cb_func_t) (PIR_Device_t *dev) |
Functions | |
| PIR_Device_t * | PIR_devRequest (void) |
| Request A PIR Device. More... | |
| 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... | |
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.
| typedef void(* pir_cb_func_t) (PIR_Device_t *dev) |
| 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 | ) |
Request A PIR Device.
Request A PIR Device.
1.8.9.1