PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches
Functions

Functions

void BSP_Screen_InitGridStyle (lv_style_t *style, lv_coord_t pad, lv_coord_t margin, lv_coord_t border, lv_coord_t radius, lv_color_t *bgColor)
 Initializes the grid style according to the given basic properties.
 
void BSP_Screen_InitLabelStyle (lv_style_t *style, const lv_font_t *font, lv_text_align_t align, lv_color_t *txtColor)
 Initializes the label style.
 
void BSP_Screen_InitTextAreaStyle (lv_style_t *style, const lv_font_t *font, lv_color_t *txtColor)
 Initializes the Text Area Style.
 
void lv_create_default_text_field (lv_obj_t *parent, lv_ta_field_data_t *field, int row, int col, lv_event_cb_t event_cb, void *eventData)
 Create a text field with name and value in default style.
 
lv_obj_t * lv_create_textfield_display (lv_obj_t *parent, lv_style_t *nameLblStyle, lv_style_t *valueStyle, const char *fieldName, const char *fieldValue, lv_event_cb_t event_cb, void *eventData, uint8_t row)
 Create a text field with name and value with given styles.
 
void lv_create_field (lv_obj_t *parent, lv_style_t *nameLblStyle, const char *fieldName, lv_obj_t *field, uint8_t row)
 Create general entry field with label and a given field.
 
lv_obj_t * lv_btn_create_general (lv_obj_t *parent, lv_style_t *btnStyle, lv_style_t *lblStyle, const char *txt, lv_event_cb_t event_cb, void *eventData)
 Create a general button.
 
lv_obj_t * lv_label_create_general (lv_obj_t *parent, lv_style_t *style, const char *txt, lv_event_cb_t event_cb, void *eventData)
 Create a general label.
 
lv_obj_t * lv_textarea_create_general (lv_obj_t *parent, lv_style_t *style, const char *txt, lv_event_cb_t event_cb, void *eventData)
 Create general textarea.
 
lv_obj_t * lv_grid_create_general (lv_obj_t *parent, lv_coord_t *cols, lv_coord_t *rows, lv_style_t *style, lv_color_t *bgColor, lv_event_cb_t event_cb, void *eventData)
 Create general grid.
 
lv_obj_t * lv_container_create_general (lv_obj_t *parent, lv_style_t *style, int row, int col, lv_event_cb_t event_cb, void *eventData)
 Create general container.
 
lv_obj_t * CreateTitle (lv_obj_t *parent, lv_grid_pos_info_t *gridInfo, const char *title)
 Create page title.
 
void BSP_Screen_Styles_Init (void)
 Initializes base screen styles.
 

Detailed Description

Function Documentation

◆ BSP_Screen_InitGridStyle()

void BSP_Screen_InitGridStyle ( lv_style_t *  style,
lv_coord_t  pad,
lv_coord_t  margin,
lv_coord_t  border,
lv_coord_t  radius,
lv_color_t *  bgColor 
)
extern
Parameters
styleStyle to be initialized.
padPadding in pixels.
marginMargin in rows for children in pixels.
borderBorder width in pixels.
radiusRadius of corners in pixels.
bgColorBackground color. NULL if default color.

◆ BSP_Screen_InitLabelStyle()

void BSP_Screen_InitLabelStyle ( lv_style_t *  style,
const lv_font_t *  font,
lv_text_align_t  align,
lv_color_t *  txtColor 
)
extern
Parameters
styleStyle to be initialized.
fontText font. NULL if default font.
alignText alignment.
txtColorText color. NULL if default color.

◆ BSP_Screen_InitTextAreaStyle()

void BSP_Screen_InitTextAreaStyle ( lv_style_t *  style,
const lv_font_t *  font,
lv_color_t *  txtColor 
)
extern
Parameters
styleStyle to be initialized.
fontText font. NULL if default font.
txtColorText color. NULL if default color.

◆ CreateTitle()

lv_obj_t * CreateTitle ( lv_obj_t *  parent,
lv_grid_pos_info_t gridInfo,
const char *  title 
)
extern
Parameters
parentParent object in which field is to be placed.
gridInfoGrid position related information.
titleTitle text.
Returns
Generated title label.

◆ lv_btn_create_general()

lv_obj_t * lv_btn_create_general ( lv_obj_t *  parent,
lv_style_t *  btnStyle,
lv_style_t *  lblStyle,
const char *  txt,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
btnStyleButton style for the field name. NULL if default style.
lblStyleLabel style for the field name. NULL if default style.
txtText in the button.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
Returns
Generated button object.

◆ lv_container_create_general()

lv_obj_t * lv_container_create_general ( lv_obj_t *  parent,
lv_style_t *  style,
int  row,
int  col,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
styleContainer style. NULL if default style.
rowRow definitions.
colColumn definitions.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
Returns
Generated container object.

◆ lv_create_default_text_field()

void lv_create_default_text_field ( lv_obj_t *  parent,
lv_ta_field_data_t field,
int  row,
int  col,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
fieldField information data.
rowRow number in the parent.
colColumn number in the parent.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.

◆ lv_create_field()

void lv_create_field ( lv_obj_t *  parent,
lv_style_t *  nameLblStyle,
const char *  fieldName,
lv_obj_t *  field,
uint8_t  row 
)
extern
Parameters
parentParent object in which field is to be placed.
nameLblStyleLabel style for the field name. NULL if default style.
fieldNameName of the field in text.
fieldlv_obj_t inserted in place of field value.
rowRow number in the parent.

◆ lv_create_textfield_display()

lv_obj_t * lv_create_textfield_display ( lv_obj_t *  parent,
lv_style_t *  nameLblStyle,
lv_style_t *  valueStyle,
const char *  fieldName,
const char *  fieldValue,
lv_event_cb_t  event_cb,
void *  eventData,
uint8_t  row 
)
extern
Parameters
parentParent object in which field is to be placed.
nameLblStyleLabel style for the field name. NULL if default style.
valueStyleTextarea style for the field value. NULL if default style.
fieldNameName of the field in text.
fieldValueValue of the field in text.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
rowRow number in the parent.
Returns
Generated textarea object.

◆ lv_grid_create_general()

lv_obj_t * lv_grid_create_general ( lv_obj_t *  parent,
lv_coord_t *  cols,
lv_coord_t *  rows,
lv_style_t *  style,
lv_color_t *  bgColor,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
colsColumn definitions.
rowsRow definitions.
styleGrid style. NULL if default style.
bgColorBackground color. NULL if default color.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
Returns
Generated grid object.

◆ lv_label_create_general()

lv_obj_t * lv_label_create_general ( lv_obj_t *  parent,
lv_style_t *  style,
const char *  txt,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
styleLabel style. NULL if default style.
txtLabel text.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
Returns
Generated label object.

◆ lv_textarea_create_general()

lv_obj_t * lv_textarea_create_general ( lv_obj_t *  parent,
lv_style_t *  style,
const char *  txt,
lv_event_cb_t  event_cb,
void *  eventData 
)
extern
Parameters
parentParent object in which field is to be placed.
styleTextarea style. NULL if default style.
txtLabel text.
event_cbcb Click event handler. Set to NULL if no click event needed.
eventDataClick event custom user data pointer.
Returns
Generated Textarea object.