Open Storm
Functions | Variables
optical_rain.c File Reference

Implements functions for hydreon optical rain sensor. More...

#include "optical_rain.h"
Include dependency graph for optical_rain.c:

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
 

Detailed Description

Implements functions for hydreon optical rain sensor.

Author
Brandon Wong and Matt Bartos
Version
TODO
Date
2017-06-19

Function Documentation

uint8 optical_rain_get_count ( )

Gets the current count of the optical rain sensor counter.

Returns
count of optical rain sensor counter

Here is the caller graph for this function:

void optical_rain_reset_count ( )

Resets the counter for the optical rain sensor.

Returns
null

Here is the caller graph for this function:

void optical_rain_start ( )

Starts the optical rain sensor UART.

Returns
null

Here is the call graph for this function:

Here is the caller graph for this function:

void optical_rain_stop ( )

Stops the optical rain sensor UART.

Returns
null

Here is the caller graph for this function:

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.

Parameters
labelsArray to store labels corresponding to each sensor reading
readingsArray to store sensor readings as floating point values
array_ixArray index to label and readings
max_sizeMaximum size of label and reading arrays (number of entries)
Returns
(*array_ix) + number of entries filled

Here is the call graph for this function:

Here is the caller graph for this function: