efuse7 2.1.0.0
main.c File Reference

eFuse 7 Click Example. More...

#include "board.h"
#include "log.h"
#include "efuse7.h"

Functions

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

Variables

const uint8_t limit_value_op [8]
 

Detailed Description

eFuse 7 Click Example.

Description

This library contains API for the eFuse 7 Click driver. This driver provides the functions to set the current limiting conditions in order to provide the threshold of the fault conditions.

The demo application is composed of two sections :

Application Init

Initialization of click module and UART log, then performing default configuration and setting a current limit to 1 A.

Application Task

This example demonstrates the use of the eFuse 7 Click board. Reading user's input from UART Terminal and using it as an index for an array of pre-calculated values that define the current limit level. Results are being sent to the UART Terminal, where you can track their changes.

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 )

◆ main()

int main ( void )

Variable Documentation

◆ limit_value_op

const uint8_t limit_value_op[8]
Initial value:
=
{
}
#define EFUSE7_CURRENT_LIMIT_2A5
Definition efuse7.h:91
#define EFUSE7_CURRENT_LIMIT_3A5
Definition efuse7.h:93
#define EFUSE7_CURRENT_LIMIT_1A
eFuse 7 current limit setting.
Definition efuse7.h:89
#define EFUSE7_CURRENT_LIMIT_5A
Definition efuse7.h:96
#define EFUSE7_CURRENT_LIMIT_2A
Definition efuse7.h:90
#define EFUSE7_CURRENT_LIMIT_4A5
Definition efuse7.h:95
#define EFUSE7_CURRENT_LIMIT_4A
Definition efuse7.h:94
#define EFUSE7_CURRENT_LIMIT_3A
Definition efuse7.h:92