ezocarrierorp 2.1.0.0
main.c File Reference

EZO Carrier ORP Click Example. More...

#include "board.h"
#include "log.h"
#include "ezocarrierorp.h"

Macros

#define APP_BUFFER_SIZE   200
 
#define PROCESS_BUFFER_SIZE   200
 
#define CALIBRATION_VALUE   "225"
 
#define DISABLE_CONT_READ   "0"
 

Functions

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

Detailed Description

EZO Carrier ORP Click Example.

Description

This example demonstrates the use of EZO Carrier ORP click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver, performs the click default factory reset, and single point calibration with a calibration solutio with 225 mV ORP value.

Application Task

Reads and processes all incoming oxidation-reduction potential data from the probe, and displays them on the USB UART in mV.

Additional Function

  • static void ezocarrierorp_clear_app_buf ( void )
  • static void ezocarrierorp_log_app_buf ( void )
  • static err_t ezocarrierorp_process ( ezocarrierorp_t *ctx )
  • static err_t ezocarrierorp_rsp_check ( ezocarrierorp_t *ctx, uint8_t *rsp )
  • static void ezocarrierorp_error_check ( err_t error_flag )
Author
Stefan Ilic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   200

◆ CALIBRATION_VALUE

#define CALIBRATION_VALUE   "225"

◆ DISABLE_CONT_READ

#define DISABLE_CONT_READ   "0"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

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 )