Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_rf_ook.h
1 #ifndef _BC_RF_OOK_H
2 #define _BC_RF_OOK_H
3 
4 #include <bc_system.h>
5 #include <bc_gpio.h>
6 #include <stm32l0xx.h>
7 
11 
14 
16 
19 
20 void bc_rf_ook_set_bitrate(uint32_t bitrate);
21 
24 
25 void bc_rf_ook_set_bitlength(uint32_t bit_length_us);
26 
30 
31 bool bc_rf_ook_send(uint8_t *packet, uint8_t length);
32 
35 
36 bool bc_rf_ook_send_hex_string(char *hex_string);
37 
39 
40 bool bc_rf_ook_is_busy();
41 
43 
44 bool bc_rf_ook_is_ready();
45 
47 
48 #endif // _BC_RF_OOK_H
bool bc_rf_ook_send(uint8_t *packet, uint8_t length)
Send data.
Definition: bc_rf_ook.c:99
void bc_rf_ook_init(bc_gpio_channel_t gpio)
Initialize RF OOK library.
Definition: bc_rf_ook.c:73
bool bc_rf_ook_is_busy()
Data sending in progress.
Definition: bc_rf_ook.c:138
void bc_rf_ook_set_bitrate(uint32_t bitrate)
Configure OOK bitrate.
Definition: bc_rf_ook.c:89
bool bc_rf_ook_send_hex_string(char *hex_string)
Send data with data in hex string.
Definition: bc_rf_ook.c:131
bc_gpio_channel_t
GPIO channels.
Definition: bc_gpio.h:12
bool bc_rf_ook_is_ready()
Data can be send.
Definition: bc_rf_ook.c:143
void bc_rf_ook_set_bitlength(uint32_t bit_length_us)
Configure OOK bitrate.
Definition: bc_rf_ook.c:94