ISMRX Click example.
Description
This application shows capability of ISM RX Click board. It sets default configuration, and collects and processes data from signal that received from ISM TX Click board. It can collect and process data from 2 type of the signal modulation( FSK and ASK ).
The demo application is composed of two sections :
Application Init
Initialization of log and communication, set's signal modulation(FSK/ASK), recive mode(continuous/discontinuous), default configuration for selected modulation, and reinitializes device for receiving mode.
Application Task
Collects samples of data from data line(MISO) when buffer is full converts samples to manchester encoded data, and checks for preamble(sync) data. If data is valid decodes data and converts bit's to valid data and logs result of received decoded data.
Additional Function
- static void clear_buffers ( void )
- static void proces_samples ( void )
- static void convert_to_manchester ( uint8_t same_data, uint8_t data_coll )
- static err_t check_preamble ( void )
- static void convert_to_bits ( void )
- static static err_t convert_to_data ( void )
note: Macros for checking sample data and delay in application_task can be prone to change depending of speed of MCU.
- Author
- Luka Filipovic