macaddress
2.0.0.0
|
MAC Address Click provides a unique node address for your application. It also has 1Kbit of writable EEPROM memory.
We provide a library for the MacAddress 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 MacAddress Click driver.
void macaddress_cfg_setup ( macaddress_cfg_t *cfg );
MACADDRESS_RETVAL macaddress_init ( macaddress_t *ctx, macaddress_cfg_t *cfg );
void macaddress_get_mac ( macaddress_t *ctx, uint8_t *read_mac );
uint8_t macaddress_read_byte ( macaddress_t *ctx, uint8_t reg_address );
This application provides a unique node address for your application.
The demo application is composed of two sections :
Initialization driver enables - I2C, also write log.
This is an example which demonstrates the use of MAC Address Click board. MAC Address Click communicates with register via I2C protocol by the write to register and read from the register. This example shows write/read sequential write/read from EEPROM. Results are being sent to the Usart Terminal where you can track their changes.
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.