Project 8  Bluetooth
Neff Site
rn41.h
Go to the documentation of this file.
1 
19 #ifndef RN41_H_
20 #define RN41_H_
21 
22 #define RN41_PORT PORTC
23 #define RN41_USART_MODULE USARTC1
24 
25 #define RN41_RESET_bp PIN0_bp
26 #define RN41_UART_RX_bp PIN7_bp
27 #define RN41_UART_TX_bp PIN6_bp
28 #define RN41_UART_RTS_bp PIN5_bp
29 #define RN41_UART_CTS_bp PIN4_bp
30 
31 #define RN41_RESET_bm PIN0_bm
32 #define RN41_UART_RX_bm PIN7_bm
33 #define RN41_UART_TX_bm PIN6_bm
34 #define RN41_UART_RTS_bm PIN5_bm
35 #define RN41_UART_CTS_bm PIN4_bm
36 
37 #define RN41_DRE_vect USARTC1_DRE_vect
38 #define RN41_RXC_vect USARTC1_RXC_vect
39 
40 #ifdef __cplusplus
41 extern "C"
42 {
43 #endif
44 
49 void rn41_init(void);
50 
55 void rn41_on(void);
56 
61 void rn41_off(void);
62 
68 uint8_t rn41_receive(void);
69 
75 void rn41_transmit(uint8_t data);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* rn41_H_ */
82 
void rn41_transmit(uint8_t data)
Transmit data.
void rn41_on(void)
Enable the module.
void rn41_off(void)
Disable the module.
uint8_t rn41_receive(void)
Receive data.
void rn41_init(void)
Initialize the Bluetooth module.
Contact