dac4 2.0.0.0
main.c File Reference

Dac4 Click example. More...

#include "board.h"
#include "log.h"
#include "dac4.h"

Functions

void dac4_log_report (uint8_t channel_no)
 
void dac4_set_output (uint8_t channel_set)
 
void dac4_channel_report ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Dac4 Click example.

Description

This application enables usage of digital to analog converter.

The demo application is composed of two sections :

Application Init

Initializes I2C driver, executes general call reset and wake up commands.

Application Task

Changes the output voltage of channels every 3 seconds, and displays the channels status on the USB UART.

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 )

◆ dac4_channel_report()

void dac4_channel_report ( )

◆ dac4_log_report()

void dac4_log_report ( uint8_t channel_no)

◆ dac4_set_output()

void dac4_set_output ( uint8_t channel_set)

◆ main()

int main ( void )