currentlimit 2.0.0.0
main.c File Reference

CurrentLimit Click example. More...

#include "board.h"
#include "log.h"
#include "currentlimit.h"

Functions

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

Variables

const uint8_t lim_val [8] = { 223, 241, 247, 250, 252, 253, 254, 255 }
 
uint16_t lim_data [8] = { 100, 200, 300, 400, 500, 600, 700, 867 }
 

Detailed Description

CurrentLimit Click example.

Description

This example shows capabilities of Current Limit Click board.

The demo application is composed of two sections :

Application Init

Initalizes SPI driver and enables the device.

Application Task

Reading users input from USART terminal and using it as an index for an array of pre-calculated values that define current limit level.

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 )

◆ display_settings()

void display_settings ( void )

◆ main()

int main ( void )

Variable Documentation

◆ lim_data

uint16_t lim_data[8] = { 100, 200, 300, 400, 500, 600, 700, 867 }

◆ lim_val

const uint8_t lim_val[8] = { 223, 241, 247, 250, 252, 253, 254, 255 }