precision-converters-firmware
|
Pocket lab GUI views. More...
Go to the source code of this file.
Classes | |
struct | pl_gui_device_param |
struct | pl_gui_init_param |
struct | pl_gui_views |
struct | pl_gui_desc |
Macros | |
#define | PL_GUI_ADD_POWER_UP_DEF_VIEW |
#define | PL_GUI_ADD_ATTR_EDIT_DEF_VIEW |
#define | PL_GUI_ADD_REG_DEBUG_DEF_VIEW |
#define | PL_GUI_ADD_DMM_DEF_VIEW |
#define | PL_GUI_ADD_CAPTURE_DEF_VIEW |
#define | PL_GUI_ADD_ANALYSIS_DEF_VIEW |
#define | PL_GUI_ADD_ABOUT_DEF_VIEW |
#define | PL_GUI_ADD_VIEW(_name, _function) |
#define | PL_GUI_REQ_DATA_SAMPLES 400 |
Functions | |
int32_t | pl_gui_init (struct pl_gui_desc **desc, struct pl_gui_init_param *param) |
Init pocket lab GUI. More... | |
int32_t | pl_gui_create_power_up_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI power-up view. More... | |
int32_t | pl_gui_create_attributes_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI attributes view. More... | |
int32_t | pl_gui_create_register_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI register view. More... | |
int32_t | pl_gui_create_dmm_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI DMM view. More... | |
int32_t | pl_gui_create_capture_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI data capture view. More... | |
int32_t | pl_gui_create_analysis_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI analysis view. More... | |
int32_t | pl_gui_create_about_view (lv_obj_t *parent, struct pl_gui_init_param *param) |
Create pocket lab GUI about view. More... | |
uint32_t | get_data_samples_count (void) |
Get the count for data samples to be captured. More... | |
void | pl_gui_get_capture_chns_mask (uint32_t *chn_mask) |
Get the channels mask based on enabled channels count. More... | |
void | pl_gui_display_captured_data (uint8_t *buf, uint32_t rec_bytes) |
Display the captured data onto GUI. More... | |
bool | pl_gui_is_dmm_running (void) |
DMM running status check. More... | |
bool | pl_gui_is_capture_running (void) |
Capture running status check. More... | |
bool | pl_gui_is_fft_running (void) |
FFT running status check. More... | |
void | pl_gui_perform_dmm_read (void) |
Perform the DMM read operations. More... | |
uint32_t | pl_gui_get_active_device_index (void) |
Read the active device index for current view. More... | |
float | pl_gui_cnv_data_to_volt_without_vref (int32_t data, uint8_t chn) |
Convert input data to voltage without Vref. More... | |
float | pl_gui_cnv_data_to_volt_wrt_vref (int32_t data, uint8_t chn) |
Convert input data code to voltage w.r.t Vref. More... | |
int32_t | pl_gui_cnv_code_to_straight_binary (uint32_t code, uint8_t chn) |
Convert input code to straight binary data. More... | |
Pocket lab GUI views.
Copyright (c) 2023 Analog Devices, Inc. All rights reserved.
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.
#define PL_GUI_ADD_ABOUT_DEF_VIEW |
#define PL_GUI_ADD_ANALYSIS_DEF_VIEW |
#define PL_GUI_ADD_ATTR_EDIT_DEF_VIEW |
#define PL_GUI_ADD_CAPTURE_DEF_VIEW |
#define PL_GUI_ADD_DMM_DEF_VIEW |
#define PL_GUI_ADD_POWER_UP_DEF_VIEW |
#define PL_GUI_ADD_REG_DEBUG_DEF_VIEW |
#define PL_GUI_ADD_VIEW | ( | _name, | |
_function | |||
) |
#define PL_GUI_REQ_DATA_SAMPLES 400 |
uint32_t get_data_samples_count | ( | void | ) |
Get the count for data samples to be captured.
int32_t pl_gui_cnv_code_to_straight_binary | ( | uint32_t | code, |
uint8_t | chn | ||
) |
Convert input code to straight binary data.
code[in] | - Input code (unsigned) |
chn[in] | - Input channel |
float pl_gui_cnv_data_to_volt_without_vref | ( | int32_t | data, |
uint8_t | chn | ||
) |
Convert input data to voltage without Vref.
data[in] | - Input data (signed, straight binary) |
chn[in] | - Input channel |
float pl_gui_cnv_data_to_volt_wrt_vref | ( | int32_t | data, |
uint8_t | chn | ||
) |
Convert input data code to voltage w.r.t Vref.
data[in] | - Input data (signed, straight binary) |
chn[in] | - Input channel |
int32_t pl_gui_create_about_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI about view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_analysis_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI analysis view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_attributes_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI attributes view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_capture_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI data capture view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_dmm_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI DMM view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_power_up_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI power-up view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
int32_t pl_gui_create_register_view | ( | lv_obj_t * | parent, |
struct pl_gui_init_param * | param | ||
) |
Create pocket lab GUI register view.
parent[in] | - tabview instance |
param[in] | - pointer to pocket lab gui init params |
void pl_gui_display_captured_data | ( | uint8_t * | buf, |
uint32_t | rec_bytes | ||
) |
Display the captured data onto GUI.
buf[in] | - Data buffer |
rec_bytes[in] | - Number of received bytes |
uint32_t pl_gui_get_active_device_index | ( | void | ) |
Read the active device index for current view.
void pl_gui_get_capture_chns_mask | ( | uint32_t * | chn_mask | ) |
Get the channels mask based on enabled channels count.
chn_mask[in,out] | - Channel mask |
int32_t pl_gui_init | ( | struct pl_gui_desc ** | desc, |
struct pl_gui_init_param * | param | ||
) |
Init pocket lab GUI.
desc[in] | - Pocket lab GUI descriptor |
param[in] | - Pocket lab GUI init parameters |
bool pl_gui_is_capture_running | ( | void | ) |
Capture running status check.
bool pl_gui_is_dmm_running | ( | void | ) |
DMM running status check.
bool pl_gui_is_fft_running | ( | void | ) |
FFT running status check.
void pl_gui_perform_dmm_read | ( | void | ) |
Perform the DMM read operations.