templog3 2.0.0.0
main.c File Reference

TempLog3 Click example. More...

#include "board.h"
#include "log.h"
#include "templog3.h"

Functions

void check_limit_status (uint8_t status)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

TempLog3 Click example.

Description

This application measures temperature.

The demo application is composed of two sections :

Application Init

Initializes I2C interface and performs a device default configuration.

Application Task

First ensures that the minimum conversion time is met, and then reads the ambient temperature calculated to the Celsius degrees, and logs the results to the USB UART.

Note
The temperature range that can be measured or written is from -40 to +125 Celsius degrees. The user can change the measured temperature resolution, but the range remains the same. The limit of the temperature resolution is always a 10bit, or 0.25 Celsius degrees. If user wants to enable the EEPROM Write Protection, the A0 pin on the device must be set to the high voltage level.
Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

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 )

◆ check_limit_status()

void check_limit_status ( uint8_t status)

◆ main()

int main ( void )