Open Storm
|
Implements functions for hydreon optical rain sensor. More...
#include "optical_rain.h"
Functions | |
CY_ISR_PROTO (isr_optical_rain) | |
CY_ISR (isr_optical_rain) | |
uint8 | optical_rain_get_count () |
Gets the current count of the optical rain sensor counter. More... | |
void | optical_rain_start () |
Starts the optical rain sensor UART. More... | |
void | optical_rain_stop () |
Stops the optical rain sensor UART. More... | |
void | optical_rain_reset_count () |
Resets the counter for the optical rain sensor. More... | |
uint8 | zip_optical_rain (char *labels[], float readings[], uint8 *array_ix, uint8 max_size) |
Inserts current values of optical rain sensor counter into labels and readings arrays. More... | |
Variables | |
uint8 | count = 0 |
Implements functions for hydreon optical rain sensor.
uint8 optical_rain_get_count | ( | ) |
Gets the current count of the optical rain sensor counter.
count
of optical rain sensor counter void optical_rain_reset_count | ( | ) |
Resets the counter for the optical rain sensor.
void optical_rain_start | ( | ) |
Starts the optical rain sensor UART.
void optical_rain_stop | ( | ) |
Stops the optical rain sensor UART.
uint8 zip_optical_rain | ( | char * | labels[], |
float | readings[], | ||
uint8 * | array_ix, | ||
uint8 | max_size | ||
) |
Inserts current values of optical rain sensor counter into labels and readings arrays.
labels | Array to store labels corresponding to each sensor reading |
readings | Array to store sensor readings as floating point values |
array_ix | Array index to label and readings |
max_size | Maximum size of label and reading arrays (number of entries) |