ismrx3 2.0.0.0
|
ISMRX3 Click example. More...
Macros | |
#define | MANCHESTER_BUF_LEN 1500/*<Manchester buffer size*/ |
#define | PREAMBLE_WORD |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | manchester_buf [MANCHESTER_BUF_LEN] = { 0 } |
ISMRX3 Click example.
This example showcases ability of click board to configure and read incoming rf signal and parses data using data and clock line.
The demo application is composed of two sections :
Initialization of communication modules (SPI, UART), and additional communication pins. Resets device, reads device ID, and sets default configuration that sets ASK modulation and 433.92MHz with 5bps data rate.
Reads clock pin and gets samples of data pin state, converts it in manchester data that is stored in a buffer. When it fills out manchester buffer checks if expected preamble data is received. If it is, checks the next byte(it should be received data length). Then parses rest of data and if it's correct shows it on log.
By default PREAMBLE_WORD is set to be 0xAAAA.
#define MANCHESTER_BUF_LEN 1500/*<Manchester buffer size*/ |
#define PREAMBLE_WORD |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t manchester_buf[MANCHESTER_BUF_LEN] = { 0 } |