Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_rf_ook

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

Functions

void bc_rf_ook_init (bc_gpio_channel_t gpio)
 Initialize RF OOK library. More...
 
void bc_rf_ook_set_bitrate (uint32_t bitrate)
 Configure OOK bitrate. More...
 
void bc_rf_ook_set_bitlength (uint32_t bit_length_us)
 Configure OOK bitrate. More...
 
bool bc_rf_ook_send (uint8_t *packet, uint8_t length)
 Send data. More...
 
bool bc_rf_ook_send_hex_string (char *hex_string)
 Send data with data in hex string. More...
 
bool bc_rf_ook_is_busy ()
 Data sending in progress.
 
bool bc_rf_ook_is_ready ()
 Data can be send.
 

Detailed Description

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

Function Documentation

void bc_rf_ook_init ( bc_gpio_channel_t  gpio)

Initialize RF OOK library.

Parameters
[in]gpioGPIO pin

Definition at line 73 of file bc_rf_ook.c.

Here is the call graph for this function:

bool bc_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 bc_rf_ook.c.

Referenced by bc_rf_ook_send_hex_string().

Here is the call graph for this function:

Here is the caller graph for this function:

bool bc_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 bc_rf_ook.c.

Here is the call graph for this function:

void bc_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 bc_rf_ook.c.

void bc_rf_ook_set_bitrate ( uint32_t  bitrate)

Configure OOK bitrate.

Parameters
[in]bitratein bits per second

Definition at line 89 of file bc_rf_ook.c.

Referenced by bc_rf_ook_init().

Here is the caller graph for this function: