ccrf2
2.0.0.0
|
ccRF2 Click carries CC1120, the fully integrated, high-performance single-chip radio transceiver with extremely low power consumption.
We provide a library for the ccRf2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for ccRf2 Click driver.
void ccrf2_cfg_setup ( ccrf2_cfg_t *cfg );
CCRF2_RETVAL ccrf2_init ( ccrf2_t *ctx, ccrf2_cfg_t *cfg );
void ccrf2_default_cfg ( ccrf2_t *ctx );
uint8_t ccrf2_receive_rx_data ( ccrf2_t *ctx, uint8_t *rx_data );
void ccrf2_send_tx_data ( ccrf2_t *ctx, uint8_t *tx_data, uint8_t n_bytes );
void ccrf2_set_rx_mode ( ccrf2_t *ctx );
This example demonstrates the use of ccRF 2 Click board.
The demo application is composed of two sections :
Initializes the driver, performs the default configuration and enables the selected mode.
Depending on the selected mode, it reads the received data or sends the desired message every 2 seconds. All data is being logged on the USB UART where you can track their changes.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.