i2cisolator3 2.0.0.0
main.c File Reference

I2CIsolator3 Click example. More...

#include "board.h"
#include "log.h"
#include "i2cisolator3.h"

Functions

void calculate_temperature ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

I2CIsolator3 Click example.

Description

This is an example that demonstrates the use of the I2C Isolator 3 click board. In this example, we measure temperature from the Thermo 20 click connected to the I2C Isolator 3 click board.

The demo application is composed of two sections :

Application Init

Initializes I2C and start to write log. Initialization driver enables - I2C, set I2C slave address of the Thermo 20 click, performs software reset, also write log.

Application Task

In this example via Thermo 20 click we get the data processed by the function. When the function processes the data, we get the temperature information. All data logs write on USB UART changes every 3 sec.

Additional Functions :

Author
Jelena Milosavljevic

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ calculate_temperature()

void calculate_temperature ( )

◆ main()

int main ( void )