charger13 2.0.0.0
main.c File Reference

Charger 13 Click example. More...

#include "board.h"
#include "log.h"
#include "charger13.h"

Functions

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

Variables

uint8_t charger_flag
 
uint8_t enable_flag
 
uint8_t status_flag
 

Detailed Description

Charger 13 Click example.

Description

This demo application charges the battery.

The demo application is composed of two sections :

Application Init

Initialization device.

Application Task

This is an example which demonstrates the use of Charger 13 click board. This example shows the automatic control of the Charger 13 click, waits for valid user input and executes functions based on a set of valid commands and check the battery charge status. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart for approximately every 1 sec when the data value changes.

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 )

Variable Documentation

◆ charger_flag

uint8_t charger_flag

◆ enable_flag

uint8_t enable_flag

◆ status_flag

uint8_t status_flag