charger11 2.0.0.0
main.c File Reference

Charger11 Click example. More...

#include "board.h"
#include "log.h"
#include "charger11.h"

Functions

void charger11_log_wiper_position (charger11_t *ctx)
 Charger 11 log wiper position.
 
void charger11_case_plus (charger11_t *ctx)
 Charger 11 increase wiper position.
 
void charger11_case_minus (charger11_t *ctx)
 Charger 11 decrease wiper position.
 
void charger11_case_report (charger11_t *ctx)
 Charger 11 log wiper position and voltage.
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Charger11 Click example.

Description

This is an example that demonstrates the use of the Charger 11 Click board.

The demo application is composed of two sections :

Application Init

Initalizes INT ( ST ), PWM ( LG ), AN ( LR ) pins and SPI, I2C, LOG modules.

Application Task

Waits for user input in order to increment, decrement wiper or log report (Wiper position and Output voltage)

Additional Functions :

Author
Stefan Ilic

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 )

◆ charger11_case_minus()

void charger11_case_minus ( charger11_t * ctx)

Charger 11 decrease wiper position.

This function decreases wiper position and logs it on UART terminal.

◆ charger11_case_plus()

void charger11_case_plus ( charger11_t * ctx)

Charger 11 increase wiper position.

This function increases wiper position and logs it on UART terminal.

◆ charger11_case_report()

void charger11_case_report ( charger11_t * ctx)

Charger 11 log wiper position and voltage.

This function reads wiper position and voltage and logs them on UART terminal.

◆ charger11_log_wiper_position()

void charger11_log_wiper_position ( charger11_t * ctx)

Charger 11 log wiper position.

This function reads wiper position and logs it on UART terminal.

◆ main()

int main ( void )