Firmware SDK
|
Driver for ON-OFF-KEY modulation for 433 MHz Radio modules. More...
Functions | |
void | twr_rf_ook_init (twr_gpio_channel_t gpio) |
Initialize RF OOK library. More... | |
void | twr_rf_ook_set_bitrate (uint32_t bitrate) |
Configure OOK bitrate. More... | |
void | twr_rf_ook_set_bitlength (uint32_t bit_length_us) |
Configure OOK bitrate. More... | |
bool | twr_rf_ook_send (uint8_t *packet, uint8_t length) |
Send data. More... | |
bool | twr_rf_ook_send_hex_string (char *hex_string) |
Send data with data in hex string. More... | |
bool | twr_rf_ook_is_busy () |
Data sending in progress. | |
bool | twr_rf_ook_is_ready () |
Data can be send. | |
Driver for ON-OFF-KEY modulation for 433 MHz Radio modules.
void twr_rf_ook_init | ( | twr_gpio_channel_t | gpio | ) |
Initialize RF OOK library.
[in] | gpio | GPIO pin |
Definition at line 73 of file twr_rf_ook.c.
bool twr_rf_ook_send | ( | uint8_t * | packet, |
uint8_t | length | ||
) |
Send data.
[in] | packet | packet |
[in] | len | packet length in bytes |
Definition at line 99 of file twr_rf_ook.c.
Referenced by twr_rf_ook_send_hex_string().
bool twr_rf_ook_send_hex_string | ( | char * | hex_string | ) |
Send data with data in hex string.
[in] | hex_string | hex string with data to send |
Definition at line 131 of file twr_rf_ook.c.
void twr_rf_ook_set_bitlength | ( | uint32_t | bit_length_us | ) |
Configure OOK bitrate.
[in] | bit_length_us | length of a single bit in microseconds |
Definition at line 94 of file twr_rf_ook.c.
void twr_rf_ook_set_bitrate | ( | uint32_t | bitrate | ) |
Configure OOK bitrate.
[in] | bitrate | in bits per second |
Definition at line 89 of file twr_rf_ook.c.
Referenced by twr_rf_ook_init().