IRPyro API  (sKEMLIB1)
Collection of routines and data structures covering the functionality of the IRPyro sensor
IRPyro GPIO control functions.

Read and write functions for the CS and INT. More...

Collaboration diagram for IRPyro GPIO control functions.:

Functions

void CS_pin_set (uint8_t port, uint8_t pin, uint8_t value)
 ON/OFF control from the MCU to the IRPyro sensor. More...
 
uint8_t INT_pin_read (uint8_t port, uint8_t pin)
 Reads the status of the pin assigned to the INT line of IRPyro. More...
 
void power_set (uint8_t port, uint8_t pin)
 Power sequence from the MCU to the IRPyro sensor. More...
 

Detailed Description

Read and write functions for the CS and INT.

*    For the IRPyro sensor the CS pin acts like a chip enable powering up the
*    sensor.
*    The INT pin on the IRPyro, when enabled, indicates that data is ready on
*    the FIFO, for collection
* 
Attention
Modify this function so affected pins of the MCU can work as an INPUT

Function Documentation

void CS_pin_set ( uint8_t  port,
uint8_t  pin,
uint8_t  value 
)

ON/OFF control from the MCU to the IRPyro sensor.

CS HIGH enables the IRPyro, CS LOW effectively turns OFF the sensor

Parameters
portIRPyro port number
pinIRPyro pin number to the CS pin
value0/1 for OFF/ON
Return values
None
Attention
If this function is modified, the affected pins of the MCU should work as an OUTPUT

Definition at line 534 of file Micro_controller_template.c.

Here is the caller graph for this function:

uint8_t INT_pin_read ( uint8_t  port,
uint8_t  pin 
)

Reads the status of the pin assigned to the INT line of IRPyro.

When the INT field in the AFE register is set to 1 the INT line on the IRPyro will go LOW when data is ready.

Parameters
portIRPyro port number
pinIRPyro pin number to the INT pin
Return values
INT_pin_statusINT pin is asserted LOW return (1)
Attention
Modify this function so the INT pin acts as an INPUT

Definition at line 503 of file Micro_controller_template.c.

Here is the caller graph for this function:

void power_set ( uint8_t  port,
uint8_t  pin 
)

Power sequence from the MCU to the IRPyro sensor.

Parameters
portIRPyro port number
pinIRPyro pin number to the CS pin
Return values
None
Attention
Refer to section "12.8 Device Power Up and Reset" in the Reference Manual

Definition at line 569 of file Micro_controller_template.c.

Here is the call graph for this function:

Here is the caller graph for this function: