charger2 2.0.0.0
main.c File Reference

Charger2 Click example. More...

#include "board.h"
#include "log.h"
#include "charger2.h"

Functions

void results_logger (charger2_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint32_t battery_data
 

Detailed Description

Charger2 Click example.

Description

This app charges the battery.

The demo application is composed of two sections :

Application Init

Initializes device.

Application Task

Reads the all necessary information for the battery charging status and logs this results on UART. Repeats operation every second. The LED diodes are used to indicate the Vcc presence when this voltage is in operating range, and to show the charging status.

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 )

◆ main()

int main ( void )

◆ results_logger()

void results_logger ( charger2_t * ctx)

Variable Documentation

◆ battery_data

uint32_t battery_data