ism5
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the ISM 5 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for ISM 5 Click driver.
ism5_cfg_setup
Config Object Initialization function. ism5_init
Initialization function. ism5_default_cfg
Click Default Configuration function. ism5_get_part_info
This function reads the device part information. ism5_transmit_packet
This function transmits a desired data packet on the selected channel. ism5_receive_packet
This function waits for a data packet to arrive on the selected channel and reads it. This example demonstrates the use of an ISM 5 click board by showing the communication between the two click boards (Server and Client).
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration, then reads and displays the device part information.
There are two application modes: Server and Client.
- Server mode: Waits for a message from client device, reads the received packet and responds with an acknowledge message.
- Client mode: Initiates communication with the server device by sending a desired packet which contains the text message and a packet counter approximately once per second. After sending the packet it waits for an acknowledge response from server. The packet counter is incremented only after successfull acknowledgment for the last packet. All data is being displayed on the USB UART where you can track their changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.