powermux2  2.0.0.0
Functions
main.c File Reference

PowerMux2 Click example. More...

#include "board.h"
#include "log.h"
#include "powermux2.h"

Functions

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

Detailed Description

PowerMux2 Click example.

Description

This library contains API for the Power MUX 2 Click driver. The Power MUX 2 operates in automatic switchover mode with a priority prioritizing supply 1 when present and quickly switches to supply 2 when supply 1 drops below approximately 6V.

The demo application is composed of two sections :

Application Init

The application init consist of initialization of SPI driver and logger.

Application Task

This is an example that demonstrates the use of the Power MUX 2 Click board™. In this example, we set the resistance of the 100kΩ for the output current limit of approximately 1.23A and lower the resistance to 50kΩ, which fits the current limit of 2.25 A. Results are sent to the Usart Terminal where you can track their changes.

Author
Nenad Filipovic

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )