Bluetooth driver. More...
#include <unistd.h>#include <stdint.h>#include <stddef.h>#include <ti/drivers/UART.h>#include "GPS.h"#include "ti_drivers_config.h"

Go to the source code of this file.
Macros | |
| #define | BLUETOOTH_BUFFER 512 |
Functions | |
| void | bluetooth_init (void) |
| Bluetooth Initialize. More... | |
| void | bluetooth_char (char *buffer, char c, uint32_t *index) |
| Bluetooth character. More... | |
| void | bluetooth_string (char *buffer, char *string, uint32_t *index) |
| Bluetooth string. More... | |
| void | bluetooth_integer (char *buffer, int integer, uint32_t *index) |
| Bluetooth integer. More... | |
| void | bluetooth_float (char *buffer, float n, uint8_t decimal_places, uint32_t *index) |
| Bluetooth float. More... | |
| void | bluetooth_sprintf (char *buffer, const char *fs,...) |
| Bluetooth sprintf. More... | |
| void | bluetooth_send (const COORDINATE *coordinate, const SysTime *sysTime, uint32_t adc) |
| Bluetooth send. More... | |
Variables | |
| UART_Handle | bluetoothUartHandle |
| char | bluetooth_buffer [BLUETOOTH_BUFFER] |
Bluetooth driver.
| #define BLUETOOTH_BUFFER 512 |
Bluetooth Max Buffer
| void bluetooth_char | ( | char * | buffer, |
| char | c, | ||
| uint32_t * | index | ||
| ) |
Bluetooth character.
Detailed description starts here
| buffer | character buffer |
| c | character |
| index | index |
| void bluetooth_float | ( | char * | buffer, |
| float | n, | ||
| uint8_t | decimal_places, | ||
| uint32_t * | index | ||
| ) |
Bluetooth float.
Detailed description starts here
| buffer | character buffer |
| n | value |
| decimal_place | how many decimal places |
| index | index |
| void bluetooth_init | ( | void | ) |
Bluetooth Initialize.
Detailed description starts here
| void | No argument |
| void bluetooth_integer | ( | char * | buffer, |
| int | integer, | ||
| uint32_t * | index | ||
| ) |
Bluetooth integer.
Detailed description starts here
| buffer | character buffer |
| integer | integer to be stored |
| index | index |
| void bluetooth_send | ( | const COORDINATE * | coordinate, |
| const SysTime * | sysTime, | ||
| uint32_t | adc | ||
| ) |
Bluetooth send.
Detailed description starts here
| coordinate | system coordinate |
| sysTime | system current time |
| adc | solar panel reading |
| void bluetooth_sprintf | ( | char * | buffer, |
| const char * | fs, | ||
| ... | |||
| ) |
Bluetooth sprintf.
Detailed description starts here
| buffer | character buffer |
| fs | string to be parsed |
| ... | arguments |
| void bluetooth_string | ( | char * | buffer, |
| char * | string, | ||
| uint32_t * | index | ||
| ) |
Bluetooth string.
Detailed description starts here
| buffer | character buffer |
| string | character |
| index | index |
| char bluetooth_buffer[BLUETOOTH_BUFFER] |
Global buffer
| UART_Handle bluetoothUartHandle |
Global instance of UART Handle