| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SDK_EVAL_Com.h
Go to the documentation of this file.
1
24 /* Define to prevent recursive inclusion -------------------------------------*/
25 #ifndef __SDK_EVAL_COM_H
26 #define __SDK_EVAL_COM_H
27
28 /* Includes ------------------------------------------------------------------*/
29 #include "BlueNRG1.h"
30 #include "BlueNRG1_conf.h"
31 #include "SDK_EVAL_Config.h"
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37
38
57 typedef void (* IO_RECEIVE_DATA_USER_CALLBACK_TYPE) (uint8_t * rx_data, uint16_t data_size);
58
59
63 #ifndef UART_BAUDRATE
64 #define UART_BAUDRATE (115200)
65 #endif
66
94 void SdkEvalComUartInit(uint32_t baudrate);
95 void SdkEvalComUartIrqConfig(FunctionalState EnableIrq);
96 void SdkEvalComIOUartIrqHandler(void);
97 void SdkEvalComIOConfig(IO_RECEIVE_DATA_USER_CALLBACK_TYPE io_receive_function);
98 void SdkEvalComIOSendData(uint8_t read_data);
99 void SdkEvalComIOReceiveData(uint8_t * rx_data, uint16_t data_size);
100 void SdkEvalComIOProcessInputData(uint8_t * rx_data, uint16_t data_size);
101
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif
121
122 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
SdkEvalComIOProcessInputData
void SdkEvalComIOProcessInputData(uint8_t *rx_data, uint16_t data_size)
Push a buffer in the read buffer.
Definition: SDK_EVAL_Com.c:313
SDK_EVAL_Config.h
This file contains SDK EVAL configuration and useful defines.
SdkEvalComUartInit
void SdkEvalComUartInit(uint32_t baudrate)
Configures Uart port.
Definition: SDK_EVAL_Com.c:137
SdkEvalComIOReceiveData
void SdkEvalComIOReceiveData(uint8_t *rx_data, uint16_t data_size)
Receive data on selected I/O port.
Definition: SDK_EVAL_Com.c:260
SdkEvalComIOSendData
void SdkEvalComIOSendData(uint8_t read_data)
Send a byte on selected I/O port.
Definition: SDK_EVAL_Com.c:249
SdkEvalComIOConfig
void SdkEvalComIOConfig(IO_RECEIVE_DATA_USER_CALLBACK_TYPE io_receive_function)
Configure the selected I/O communciation channel.
Definition: SDK_EVAL_Com.c:235
SdkEvalComIOUartIrqHandler
void SdkEvalComIOUartIrqHandler(void)
Serial IRQ handler body to be put on user UART_IRQHandler()
Definition: SDK_EVAL_Com.c:209
SdkEvalComUartIrqConfig
void SdkEvalComUartIrqConfig(FunctionalState EnableIrq)
Enable UART IRQ request.
Definition: SDK_EVAL_Com.c:187
IO_RECEIVE_DATA_USER_CALLBACK_TYPE
void(* IO_RECEIVE_DATA_USER_CALLBACK_TYPE)(uint8_t *rx_data, uint16_t data_size)
IO_Receive_Data User callback type.
Definition: SDK_EVAL_Com.h:57