Open Storm
Functions
misc.h File Reference

Declares miscellaneous utilites. More...

#include <device.h>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float32 read_vbat ()
 Reads the current battery voltage. More...
 
uint8 zip_vbat (char *labels[], float readings[], uint8 *array_ix, uint8 max_size)
 Inserts current value of v_bat into readings array. More...
 
uint8 blink_LED (uint8 n_blinks)
 Blinks the onboard LED. More...
 
void init_pins ()
 Initializes pins by writing them low. More...
 

Detailed Description

Declares miscellaneous utilites.

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

Function Documentation

uint8 blink_LED ( uint8  n_blinks)

Blinks the onboard LED.

Returns
1u on success

Here is the caller graph for this function:

void init_pins ( )

Initializes pins by writing them low.

Returns
null
float32 read_vbat ( )

Reads the current battery voltage.

Returns
Battery voltage as a 32-bit float

Here is the caller graph for this function:

uint8 zip_vbat ( char *  labels[],
float  readings[],
uint8 *  array_ix,
uint8  max_size 
)

Inserts current value of v_bat into readings array.

Parameters
labelsArray to store labels corresponding to each trigger result
readingsArray to store trigger results 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: