Read and write functions for the CS and INT.
More...
|
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
*
- Attention
- Modify this function so affected pins of the MCU can work as an INPUT
◆ CS_pin_set()
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
-
port | IRPyro port number |
pin | IRPyro pin number to the CS pin |
value | 0/1 for OFF/ON |
- Return values
-
- 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.
◆ INT_pin_read()
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
-
port | IRPyro port number |
pin | IRPyro pin number to the INT pin |
- Return values
-
INT_pin_status | INT 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.
◆ power_set()
void power_set |
( |
uint8_t |
port, |
|
|
uint8_t |
pin |
|
) |
| |
Power sequence from the MCU to the IRPyro sensor.
- Parameters
-
port | IRPyro port number |
pin | IRPyro pin number to the CS pin |
- Return values
-
- 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.