Project 8
Bluetooth
|
Neff Site |
This module implements an interface for Bluetooth click module. More...
Go to the source code of this file.
Macros | |
#define | RN41_PORT PORTC |
#define | RN41_USART_MODULE USARTC1 |
#define | RN41_RESET_bp PIN0_bp |
#define | RN41_UART_RX_bp PIN7_bp |
#define | RN41_UART_TX_bp PIN6_bp |
#define | RN41_UART_RTS_bp PIN5_bp |
#define | RN41_UART_CTS_bp PIN4_bp |
#define | RN41_RESET_bm PIN0_bm |
#define | RN41_UART_RX_bm PIN7_bm |
#define | RN41_UART_TX_bm PIN6_bm |
#define | RN41_UART_RTS_bm PIN5_bm |
#define | RN41_UART_CTS_bm PIN4_bm |
#define | RN41_DRE_vect USARTC1_DRE_vect |
#define | RN41_RXC_vect USARTC1_RXC_vect |
Functions | |
void | rn41_init (void) |
Initialize the Bluetooth module. More... | |
void | rn41_on (void) |
Enable the module. More... | |
void | rn41_off (void) |
Disable the module. More... | |
uint8_t | rn41_receive (void) |
Receive data. More... | |
void | rn41_transmit (uint8_t data) |
Transmit data. More... | |
This module implements an interface for Bluetooth click module.
In order to establish a connection to the Bluetooth module an outgoing console session via port Bluetooth-Master 'RNI-SPP' is used. Please check Bluetooth & other devices / More Bluetooth options / COM Ports. The status of Bluetooth-Master will be connected if a connection has successfully been established.
#define RN41_DRE_vect USARTC1_DRE_vect |
#define RN41_PORT PORTC |
#define RN41_RESET_bm PIN0_bm |
#define RN41_RESET_bp PIN0_bp |
#define RN41_RXC_vect USARTC1_RXC_vect |
#define RN41_UART_CTS_bm PIN4_bm |
#define RN41_UART_CTS_bp PIN4_bp |
#define RN41_UART_RTS_bm PIN5_bm |
#define RN41_UART_RTS_bp PIN5_bp |
#define RN41_UART_RX_bm PIN7_bm |
#define RN41_UART_RX_bp PIN7_bp |
#define RN41_UART_TX_bm PIN6_bm |
#define RN41_UART_TX_bp PIN6_bp |
#define RN41_USART_MODULE USARTC1 |
void rn41_init | ( | void | ) |
Initialize the Bluetooth module.
Sets up the USART interface of the module.
void rn41_off | ( | void | ) |
Disable the module.
Disables the module by turning the reset signal on.
void rn41_on | ( | void | ) |
Enable the module.
Enables the module by turning the reset signal off.
uint8_t rn41_receive | ( | void | ) |
Receive data.
Receives one data byte via the Bluetooth interface.
void rn41_transmit | ( | uint8_t | data | ) |
Transmit data.
Transmit one data byte via the Bluetooth interface.
data | The data byte to be transmitted. |
Contact | Generated by 1.8.13 |