|
Master Thesis
V1.0
Research and Design of Sensor Node for NMSD Treatment
|
Go to the documentation of this file.
25 #define BUFFER_SIZE 80
31 #define BLE_POWER_PIN 11
32 #define BLE_POWER_PORT gpioPortB
35 #define BLE_PORT gpioPortC
36 #define BLE_USART USART1
39 #define BLE_LED2_PIN 10
40 #define BLE_LED2_PORT gpioPortE
44 #define BLE_LED2_PIN 10
45 #define BLE_LED2_PORT gpioPortA
48 #define BLE_OUTPUT_POWER_4DB 0x04
49 #define BLE_OUTPUT_POWER_0DB 0x00
50 #define BLE_OUTPUT_POWER_N4DB 0xFC
51 #define BLE_OUTPUT_POWER_N8DB 0xF8
52 #define BLE_OUTPUT_POWER_N12DB 0xF4
53 #define BLE_OUTPUT_POWER_N16DB 0xF0
54 #define BLE_OUTPUT_POWER_N20DB 0xEC
55 #define BLE_OUTPUT_POWER_N40DB 0xD8
74 void BLE_sendData( uint8_t *
data, uint8_t *batt, uint8_t length, uint8_t *ble_packet );
77 void BLE_sendIMUData(uint8_t *gyroData, uint8_t *accelData, uint8_t *magnData);
void BLE_sendData4(uint8_t data_in[])
Test function, not used.
void float_to_uint8_t_x3(float *input, uint8_t *out)
Float to uint8_t conversion x3.
void BLE_sendIMUData(uint8_t *gyroData, uint8_t *accelData, uint8_t *magnData)
Test function, not used.
void BLE_Init()
BLE chip init.
char RX_buffer[BUFFER_SIZE]
void BLE_rxtx_enable(bool enable)
Enable disable RX/TX pins from BLE module.
void BLE_connect()
Connect sequence BLE.
void BLE_disconnect()
Disconnect BLE from receiver.
void BLE_set_output_power(uint8_t power)
Set BLE output power.
void float_to_uint8_t(float *input, uint8_t *out)
Float to uint8_t conversion.
void BLE_check_connect()
Check if LED pin on BLE is high to check if the module is connected to a receiver.
void BLE_power(bool enable)
Turn power on/off for BLE module.
void BLE_readData(uint8_t *readData, uint8_t length)
Test function, not used.
void BLE_sendData(uint8_t *data, uint8_t *batt, uint8_t length, uint8_t *ble_packet)
Send all the data over BLE.