Open Storm
Functions
sensors_uart_control.h File Reference

A collection of common patterns used to interface with the sensors UART. More...

#include <project.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
Include dependency graph for sensors_uart_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sensors_uart_start ()
 Starts the sensors UART with generic interrupt service.
 
void sensors_uart_stop ()
 Stops the sensors UART and generic interrupt service.
 
void sensors_uart_set_baud (const uint32_t baud)
 Sets the baud rate for the sensors uart. More...
 
char * sensors_uart_get_string ()
 Get the uart received string. More...
 
size_t sensors_uart_get_string_size ()
 Get the size of the string in the buffer. More...
 
void sensors_uart_clear_string ()
 Clears internal buffer.
 
 CY_ISR_PROTO (isr_sensors_uart_rx)
 

Detailed Description

A collection of common patterns used to interface with the sensors UART.

Author
Ivan Mondragon
Version
TODO
Date
2017-07-16

Function Documentation

char* sensors_uart_get_string ( )

Get the uart received string.

Returns
Pointer to the string in the buffer.

Here is the caller graph for this function:

size_t sensors_uart_get_string_size ( )

Get the size of the string in the buffer.

Returns
Size of string in buffer.
void sensors_uart_set_baud ( const uint32_t  baud)

Sets the baud rate for the sensors uart.

Parameters
baudOne of the standard baud rates. [1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000, or 256000]

Here is the caller graph for this function: