i2cisolator2  2.0.0.0
Macros | Functions
main.c File Reference

I2CIsolator2 Click example. More...

#include "board.h"
#include "log.h"
#include "i2cisolator2.h"

Macros

#define EEPROM3_SLAVE_ADDRESS   0x50
 
#define EEPROM3_DEMO_TEXT   "MikroE - I2C Isolator 2 with EEPROM 3 click!"
 

Functions

void eeprom3_write_page (uint32_t address, uint8_t *data_in, uint8_t len)
 
void eeprom3_read_page (uint32_t address, uint8_t *data_out, uint8_t len)
 
void application_init ()
 
void application_task ()
 
void main ()
 

Detailed Description

I2CIsolator2 Click example.

Description

This example showcases how to initialize, configure and use the I2C Isolator 2 click module. The click provides I2C lines and power isolation for slave devices. In order for this example to work, you need the EEPROM 3 click.

The demo application is composed of two sections :

Application Init

Initializes the driver and enables the power output.

Application Task

Writes the desired message to EEPROM 3 click board and reads it back every 2 seconds. All data is being displayed on the USB UART where you can track the program flow.

Author
MikroE Team

Macro Definition Documentation

◆ EEPROM3_DEMO_TEXT

#define EEPROM3_DEMO_TEXT   "MikroE - I2C Isolator 2 with EEPROM 3 click!"

◆ EEPROM3_SLAVE_ADDRESS

#define EEPROM3_SLAVE_ADDRESS   0x50

Function Documentation

◆ application_init()

void application_init ( )

◆ application_task()

void application_task ( )

◆ eeprom3_read_page()

void eeprom3_read_page ( uint32_t  address,
uint8_t *  data_out,
uint8_t  len 
)

◆ eeprom3_write_page()

void eeprom3_write_page ( uint32_t  address,
uint8_t *  data_in,
uint8_t  len 
)

◆ main()

void main ( )