Herzog Library 00.00.01  rel_libdev.herzog.00.00.01.10606
Data Structures | Macros | Functions
pir_sfrs.h File Reference

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)
 

Detailed Description

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.

Macro Definition Documentation

#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.

Function Documentation

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)