IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
bluetooth.h
Go to the documentation of this file.
1
12#ifndef BLUETOOTH_H_
13#define BLUETOOTH_H_
14#include <unistd.h>
15#include <stdint.h>
16#include <stddef.h>
17#include <ti/drivers/UART.h>
18#include "GPS.h"
19#include "ti_drivers_config.h"
20/*Set Size of Buffer*/
21
22#define BLUETOOTH_BUFFER 512
28
35void bluetooth_init(void);
36
37
47void bluetooth_char(char *buffer, char c, uint32_t *index);
48
49
59void bluetooth_string(char *buffer, char *string, uint32_t *index);
60
61
71void bluetooth_integer(char *buffer, int integer, uint32_t *index);
72
73
74
85void bluetooth_float(char *buffer, float n, uint8_t decimal_places, uint32_t *index);
86
87
97void bluetooth_sprintf(char *buffer, const char *fs, ...);
98/*Send message via UART*/
99
100
110void bluetooth_send(const COORDINATE *coordinate, const SysTime *sysTime, uint32_t adc);
111#endif /* BLUETOOTH_H_ */
GPS NMEA custom API.
void bluetooth_string(char *buffer, char *string, uint32_t *index)
Bluetooth string.
Definition: bluetooth.c:50
void bluetooth_char(char *buffer, char c, uint32_t *index)
Bluetooth character.
Definition: bluetooth.c:45
#define BLUETOOTH_BUFFER
Definition: bluetooth.h:22
void bluetooth_send(const COORDINATE *coordinate, const SysTime *sysTime, uint32_t adc)
Bluetooth send.
Definition: bluetooth.c:176
void bluetooth_init(void)
Bluetooth Initialize.
Definition: bluetooth.c:15
UART_Handle bluetoothUartHandle
Definition: bluetooth.h:24
void bluetooth_float(char *buffer, float n, uint8_t decimal_places, uint32_t *index)
Bluetooth float.
Definition: bluetooth.c:82
void bluetooth_sprintf(char *buffer, const char *fs,...)
Bluetooth sprintf.
Definition: bluetooth.c:137
void bluetooth_integer(char *buffer, int integer, uint32_t *index)
Bluetooth integer.
Definition: bluetooth.c:58
char bluetooth_buffer[BLUETOOTH_BUFFER]
Definition: bluetooth.h:26
SysTime sysTime
Definition: sim33eau.h:32
COORDINATE coordinate
Definition: sim33eau.h:31
COORDINATE object.
Definition: GPS.h:113
SysTime Time object.
Definition: GPS.h:35