buck14 2.0.0.0
main.c File Reference

Buck14 Click example. More...

#include "board.h"
#include "log.h"
#include "buck14.h"

Functions

void error_handler (uint8_t stat_data)
 
void read_vout_data (buck14_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Buck14 Click example.

Description

This app enables usage of high-efficiency step-down converter.

The demo application is composed of two sections :

Application Init

Configure device.

Application Task

Sends 4 different commands for VOUT in span of 8sec

note: When you send data you should send LSB first. Device input V should be beetween 4.5 - 14 V. Device output V could be from 0.5 - 5 V deepending from limits you set currently it is set to 1V.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

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 )

◆ error_handler()

void error_handler ( uint8_t stat_data)

◆ main()

int main ( void )

◆ read_vout_data()

void read_vout_data ( buck14_t * ctx)