vcpmonitor2 2.0.0.0
main.c File Reference

Vcpmonitor2 Click example. More...

#include "board.h"
#include "log.h"
#include "vcpmonitor2.h"

Functions

void display_alert_status ()
 
void display_channel_data (uint8_t channel)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Vcpmonitor2 Click example.

Description

VCP Monitor 2 Click is a three-channel, high-side current and bus voltage monitor with alert indication function ensuring the intended application works within desired operating conditions.

The demo application is composed of two sections :

Application Init

Initiaizes the driver, and checks the communication by reading the manufacture device ID. After that, performs the device default configuration.

Application Task

Displays the voltage, current, and power detected from channel 1 on the USB UART every 2 seconds. It also displays the status of alert indicators.

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 )

◆ display_alert_status()

void display_alert_status ( )

◆ display_channel_data()

void display_channel_data ( uint8_t channel)

◆ main()

int main ( void )