thyonei 2.1.0.0
|
Thyone-I Click Example. More...
Macros | |
#define | APP_BUFFER_SIZE 500 |
#define | PROCESS_BUFFER_SIZE 200 |
#define | TRANSMITTER_MAC_ADDRESS 0x6C000001ul |
Thyone-I MAC addresses. More... | |
#define | RECEIVER_MAC_ADDRESS 0x6C000002ul |
#define | MAC_GROUP_ADDRESS 0xAA |
#define | SOURCE_ADDRESS |
#define | DESTINATION_ADDRESS RECEIVER_MAC_ADDRESS |
#define | MESSAGE "Thyone-I Click Ecample " |
Thyone-I Message. More... | |
#define | BRODCAST_MESSAGE "Brodcast" |
#define | MULTICAST_MESSAGE "Multicast" |
#define | UNICAST_MESSAGE "Unicast" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Thyone-I Click Example.
This example demonstrates the use of the Thyone-I click board by sending and receiving data and displaying them on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration and setting the MAC addresses and mode.
Transmitter mode - Sending data to the devices within range ( thyonei_broadcast_data_req ), with same MAC group ( thyonei_multicast_data_req ) and with the selected MAC destination address ( thyonei_unicast_data_req ). Receiver mode - Reads and processes all incoming data and displays them on the USB UART.
#define APP_BUFFER_SIZE 500 |
#define BRODCAST_MESSAGE "Brodcast" |
#define DESTINATION_ADDRESS RECEIVER_MAC_ADDRESS |
#define MAC_GROUP_ADDRESS 0xAA |
#define MESSAGE "Thyone-I Click Ecample " |
Thyone-I Message.
Specified message to be sent to receivers of Thyone-I Click driver.
#define MULTICAST_MESSAGE "Multicast" |
#define PROCESS_BUFFER_SIZE 200 |
#define RECEIVER_MAC_ADDRESS 0x6C000002ul |
#define SOURCE_ADDRESS |
#define TRANSMITTER_MAC_ADDRESS 0x6C000001ul |
Thyone-I MAC addresses.
Specified setting for MAC addresses of Thyone-I Click driver.
#define UNICAST_MESSAGE "Unicast" |
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 | ) |