efuse3 2.0.0.0
main.c File Reference

eFuse3 Click example More...

#include "board.h"
#include "log.h"
#include "efuse3.h"

Functions

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

Detailed Description

eFuse3 Click example

Description

This library contains API for the eFuse 3 Click driver. The library contains drivers to enable/disable the device, for reading ADC voltage, overflow status, output and current value [ A ].

The demo application is composed of two sections :

Application Init

Initializes SPI driver and set default configuration.

Application Task

This is an example that demonstrates the use of the eFuse 3 Click board. Read and display device status information and current value [ A ]. The eFuse 3 includes an overvoltage clamp the circuit that limits the output voltage during transients but does not shut the unit down, thereby allowing the load circuit to continue its operation. The Electronic Fuse is to limit current and current limit Current limit ( 0.1 A - 1.8 A ) depends on the choice of resistor wired on the Rlimit ( 1 Ohm - 15 Ohm ) connector. For example, for Rlimit resistance of 1 Ohm, current limit is 1 A ( 3.5 Ohm - 0.5 A, 7 Ohm - 0.25 A ). Read details from the ON Semiconductor NIS6150 datasheets.
Results are being 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.

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 )