IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
bluetooth.h File Reference

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"
Include dependency graph for bluetooth.h:
This graph shows which files directly or indirectly include this file:

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]
 

Detailed Description

Bluetooth driver.

Author
Jesus Minjares
See also
https://github.com/jminjares4
Author
Erick A. Baca
See also
https://github.com/eabaca2419
Version
0.1
Date
2022-05-20

Macro Definition Documentation

◆ BLUETOOTH_BUFFER

#define BLUETOOTH_BUFFER   512

Bluetooth Max Buffer

Function Documentation

◆ bluetooth_char()

void bluetooth_char ( char *  buffer,
char  c,
uint32_t *  index 
)

Bluetooth character.

Detailed description starts here

Parameters
buffercharacter buffer
ccharacter
indexindex
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

◆ bluetooth_float()

void bluetooth_float ( char *  buffer,
float  n,
uint8_t  decimal_places,
uint32_t *  index 
)

Bluetooth float.

Detailed description starts here

Parameters
buffercharacter buffer
nvalue
decimal_placehow many decimal places
indexindex
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

◆ bluetooth_init()

void bluetooth_init ( void  )

Bluetooth Initialize.

Detailed description starts here

Parameters
voidNo argument
Returns
None

◆ bluetooth_integer()

void bluetooth_integer ( char *  buffer,
int  integer,
uint32_t *  index 
)

Bluetooth integer.

Detailed description starts here

Parameters
buffercharacter buffer
integerinteger to be stored
indexindex
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

◆ bluetooth_send()

void bluetooth_send ( const COORDINATE coordinate,
const SysTime sysTime,
uint32_t  adc 
)

Bluetooth send.

Detailed description starts here

Parameters
coordinatesystem coordinate
sysTimesystem current time
adcsolar panel reading
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

◆ bluetooth_sprintf()

void bluetooth_sprintf ( char *  buffer,
const char *  fs,
  ... 
)

Bluetooth sprintf.

Detailed description starts here

Parameters
buffercharacter buffer
fsstring to be parsed
...arguments
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

◆ bluetooth_string()

void bluetooth_string ( char *  buffer,
char *  string,
uint32_t *  index 
)

Bluetooth string.

Detailed description starts here

Parameters
buffercharacter buffer
stringcharacter
indexindex
See also
https://github.com/grbl/grbl/blob/master/grbl/print.c
Returns
None

Variable Documentation

◆ bluetooth_buffer

char bluetooth_buffer[BLUETOOTH_BUFFER]

Global buffer

◆ bluetoothUartHandle

UART_Handle bluetoothUartHandle

Global instance of UART Handle