|
Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Go to the source code of this file.
Data Structures | |
| struct | PIR_SFRS_t |
| A structure to represent Special Function Registers for PIR. More... | |
Macros | |
| #define | PIR_SFRS ((__IO PIR_SFRS_t *) (0x50000050)) |
| The starting address of SFRS for PIR. More... | |
| #define | E_PIR_DIVIDER_STEPSIZE 8 |
| #define | E_PIR_ATTEN_STEPSIZE 2 |
| #define | PIR_DIVIDER_NOT_IN_RANGE(x) (x > 4) |
| #define | PIR_COUNTER_NOT_IN_RANGE(x) (x > 1023) |
| #define | PIR_INHB_NOT_IN_RANGE(x) (x < 1 || x > 15) |
| #define | PIR_ATTEN_NOT_IN_RANGE(x) (x > 15) |
Functions | |
| void | PIR_Enable (void) |
| void | PIR_Disable (void) |
| void | PIR_SetCounter (uint16_t val) |
| void | PIR_SetDivider (uint8_t val) |
| void | PIR_SetInhibit (uint8_t val) |
| void | PIR_SetAtten (uint8_t val) |
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 E_PIR_ATTEN_STEPSIZE 2 |
| #define E_PIR_DIVIDER_STEPSIZE 8 |
| #define PIR_ATTEN_NOT_IN_RANGE | ( | x | ) | (x > 15) |
| #define PIR_COUNTER_NOT_IN_RANGE | ( | x | ) | (x > 1023) |
| #define PIR_DIVIDER_NOT_IN_RANGE | ( | x | ) | (x > 4) |
| #define PIR_INHB_NOT_IN_RANGE | ( | x | ) | (x < 1 || x > 15) |
| #define PIR_SFRS ((__IO PIR_SFRS_t *) (0x50000050)) |
The starting address of SFRS for PIR.
| void PIR_Disable | ( | void | ) |
| void PIR_Enable | ( | void | ) |
| void PIR_SetAtten | ( | uint8_t | val | ) |
| void PIR_SetCounter | ( | uint16_t | val | ) |
| void PIR_SetDivider | ( | uint8_t | val | ) |
| void PIR_SetInhibit | ( | uint8_t | val | ) |
1.8.9.1