IRPyro API
(sKEMLIB1)
Collection of routines and data structures covering the functionality of the IRPyro sensor
|
Read and write functions for the CS and INT. More...
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... | |
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 *
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
port | IRPyro port number |
pin | IRPyro pin number to the CS pin |
value | 0/1 for OFF/ON |
None |
Definition at line 534 of file Micro_controller_template.c.
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.
port | IRPyro port number |
pin | IRPyro pin number to the INT pin |
INT_pin_status | INT pin is asserted LOW return (1) |
Definition at line 503 of file Micro_controller_template.c.
void power_set | ( | uint8_t | port, |
uint8_t | pin | ||
) |
Power sequence from the MCU to the IRPyro sensor.
port | IRPyro port number |
pin | IRPyro pin number to the CS pin |
None |
Definition at line 569 of file Micro_controller_template.c.