precision-converters-firmware
Enumerations | Functions
pl_gui_events.c File Reference

Pocket lab GUI event handling. More...

#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "pl_gui_events.h"
#include "pl_gui_views.h"
#include "no_os_delay.h"
Include dependency graph for pl_gui_events.c:

Enumerations

enum  pl_gui_capture_state {
  PL_GUI_PREPARE_CAPTURE ,
  PL_GUI_START_CAPTURE ,
  PL_GUI_END_CAPTURE
}
 

Functions

void pl_gui_lvgl_tick_update (uint32_t tick_time)
 Update lvgl tick timer. More...
 
int32_t pl_gui_event_read (uint8_t *buf, uint32_t len)
 Read the pocket lab GUI event and form (an IIO) command string. More...
 
int32_t pl_gui_event_write (uint8_t *buf, uint32_t len)
 Form the response for previous pocket lab GUI event (an IIO) command string. More...
 
void pl_gui_event_handle (uint32_t tick_time)
 Handle lvgl GUI events. More...
 

Detailed Description

Pocket lab GUI event handling.

Copyright (c) 2023 Analog Devices, Inc.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Enumeration Type Documentation

◆ pl_gui_capture_state

Enumerator
PL_GUI_PREPARE_CAPTURE 
PL_GUI_START_CAPTURE 
PL_GUI_END_CAPTURE 

Function Documentation

◆ pl_gui_event_handle()

void pl_gui_event_handle ( uint32_t  tick_time)

Handle lvgl GUI events.

Parameters
tick_time[in]- tick time in msec
Returns
None

◆ pl_gui_event_read()

int32_t pl_gui_event_read ( uint8_t *  buf,
uint32_t  len 
)

Read the pocket lab GUI event and form (an IIO) command string.

Parameters
buf[in]- I/O buffer
len[in]- Number of bytes to read
Returns
Number of bytes read

◆ pl_gui_event_write()

int32_t pl_gui_event_write ( uint8_t *  buf,
uint32_t  len 
)

Form the response for previous pocket lab GUI event (an IIO) command string.

Parameters
buf[in]- I/O buffer
len[in]- Number of bytes to write
Returns
Number of bytes written

◆ pl_gui_lvgl_tick_update()

void pl_gui_lvgl_tick_update ( uint32_t  tick_time)

Update lvgl tick timer.

Parameters
tick_time[in]- tick time in msec
Returns
None