Firmware SDK
twr_rf_ook

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.
 

Detailed Description

Driver for ON-OFF-KEY modulation for 433 MHz Radio modules.

Function Documentation

◆ twr_rf_ook_init()

void twr_rf_ook_init ( twr_gpio_channel_t  gpio)

Initialize RF OOK library.

Parameters
[in]gpioGPIO pin

Definition at line 73 of file twr_rf_ook.c.

Here is the call graph for this function:

◆ twr_rf_ook_send()

bool twr_rf_ook_send ( uint8_t *  packet,
uint8_t  length 
)

Send data.

Parameters
[in]packetpacket
[in]lenpacket length in bytes

Definition at line 99 of file twr_rf_ook.c.

Referenced by twr_rf_ook_send_hex_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ twr_rf_ook_send_hex_string()

bool twr_rf_ook_send_hex_string ( char *  hex_string)

Send data with data in hex string.

Parameters
[in]hex_stringhex string with data to send

Definition at line 131 of file twr_rf_ook.c.

Here is the call graph for this function:

◆ twr_rf_ook_set_bitlength()

void twr_rf_ook_set_bitlength ( uint32_t  bit_length_us)

Configure OOK bitrate.

Parameters
[in]bit_length_uslength of a single bit in microseconds

Definition at line 94 of file twr_rf_ook.c.

◆ twr_rf_ook_set_bitrate()

void twr_rf_ook_set_bitrate ( uint32_t  bitrate)

Configure OOK bitrate.

Parameters
[in]bitratein bits per second

Definition at line 89 of file twr_rf_ook.c.

Referenced by twr_rf_ook_init().

Here is the caller graph for this function: