precision-converters-firmware
|
Pocket lab GUI views. More...
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include "pl_gui_views.h"
#include "pl_gui_iio_wrapper.h"
#include "adi_fft.h"
#include "no_os_delay.h"
#include "no_os_util.h"
#include "no_os_error.h"
#include "stm32f769i_discovery.h"
#include "tft.h"
#include "touchpad.h"
#include "lvgl/lvgl.h"
#include "lv_conf.h"
Macros | |
#define | PL_GUI_DATA_MAX_RANGE 16777215 |
#define | PL_GUI_DATA_MIN_RANGE -16777215 |
#define | PL_GUI_CHART_MAX_PXL_RANGE 2000000 |
#define | PL_GUI_CHART_MIN_PXL_RANGE -2000000 |
#define | PL_GUI_DMM_READ_CNT 10 |
Functions | |
uint32_t | pl_gui_get_active_device_index (void) |
Read the active device index for current view. More... | |
void | pl_gui_perform_dmm_read (void) |
Perform the DMM read operations. More... | |
void | pl_gui_display_captured_data (uint8_t *buf, uint32_t rec_bytes) |
Display the captured data onto GUI. More... | |
uint32_t | get_data_samples_count (void) |
Get the count for data samples to be captured. More... | |
void | pl_gui_store_chn_info (struct scan_type *ch_info, uint32_t chn_indx) |
Store the channel info. More... | |
void | pl_gui_get_capture_chns_mask (uint32_t *chn_mask) |
Get the channels mask based on enabled channels count. 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... | |
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... | |
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... | |
int32_t | pl_gui_init (struct pl_gui_desc **desc, struct pl_gui_init_param *param) |
Init pocket lab GUI. More... | |
Variables | |
bool | pl_gui_capture_is_running |
struct adi_fft_processing | pl_gui_fft_proc |
struct adi_fft_measurements | pl_gui_fft_meas |
bool | pl_gui_fft_is_running |
Pocket lab GUI views.
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.
#define PL_GUI_CHART_MAX_PXL_RANGE 2000000 |
#define PL_GUI_CHART_MIN_PXL_RANGE -2000000 |
#define PL_GUI_DATA_MAX_RANGE 16777215 |
#define PL_GUI_DATA_MIN_RANGE -16777215 |
#define PL_GUI_DMM_READ_CNT 10 |
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.
void pl_gui_store_chn_info | ( | struct scan_type * | ch_info, |
uint32_t | chn_indx | ||
) |
Store the channel info.
ch_info[in] | - Channel information |
chn_indx[in] | - Channel index |
bool pl_gui_capture_is_running |
bool pl_gui_fft_is_running |
struct adi_fft_measurements pl_gui_fft_meas |
struct adi_fft_processing pl_gui_fft_proc |