ata663254 2.0.0.0
|
ATA663254 click is a fully integrated LIN transceiver device with an integrated 5V LDO voltage regulator.
We provide a library for the Ata663254 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 Ata663254 Click driver.
- Initialization function.void ata663254_cfg_setup ( ata663254_cfg_t *cfg );
ATA663254_RETVAL ata663254_init ( ata663254_t *ctx, ata663254_cfg_t *cfg );
void ata663254_enable ( ata663254_t *ctx, uint8_t state );
uint8_t ata663254_get_rst_state ( ata663254_t *ctx );
void ata663254_generic_write ( ata663254_t *ctx, char *data_buf, uint16_t len );
int32_t ata663254_generic_read ( ata663254_t *ctx, char *data_buf, uint16_t len );
This application demonstates the use of ATA663254 Click board.
The demo application is composed of two sections :
Initializes the click driver and enables the click board.
Depending on the selected mode, it reads all the received data or sends the desired message each 2 seconds.
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.