CS Initiator Display#
Prints Channel Sounding (CS) Initiator status information to the LCD of the WSTK.
Modules#
cs_initiator_display_content_t
Enumerations#
Display rows.
UI alignment.
Functions#
Macros#
Enumeration Documentation#
cs_initiator_display_row_t#
cs_initiator_display_row_t
Display rows.
Enumerator | |
---|---|
ROW_SYSTEM | |
ROW_ROLE | |
ROW_MODE | |
ROW_DISTANCE_TEXT | |
ROW_DISTANCE_VALUE | |
ROW_LIKELINESS_TEXT | |
ROW_LIKELINESS_VALUE | |
ROW_RSSI_DISTANCE_TEXT | |
ROW_RSSI_DISTANCE_VALUE | |
ROW_BIT_ERROR_RATE_TEXT | |
ROW_BIT_ERROR_RATE_VALUE | |
ROW_STATE |
80
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
cs_initiator_display_alignment_t#
cs_initiator_display_alignment_t
UI alignment.
Enumerator | |
---|---|
CS_INITIATOR_DISPLAY_ALIGNMENT_LEFT | |
CS_INITIATOR_DISPLAY_ALIGNMENT_CENTER | |
CS_INITIATOR_DISPLAY_ALIGNMENT_RIGHT |
96
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
Function Documentation#
cs_initiator_display_set_distance#
void cs_initiator_display_set_distance (float distance)
[in] | distance | Distance value |
Set distance value to display
95
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_set_distance_progress#
void cs_initiator_display_set_distance_progress (float progress_percentage)
[in] | progress_percentage | Distance progress percentage |
Set distance progress percentage to display
101
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_set_rssi_distance#
void cs_initiator_display_set_rssi_distance (float distance)
[in] | distance | RSSI distance value |
Set RSSI based distance value to display
107
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_set_likeliness#
void cs_initiator_display_set_likeliness (float likeliness)
[in] | likeliness | likeliness value |
Set the likeliness parameter to display
113
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_set_bit_error_rate#
void cs_initiator_display_set_bit_error_rate (float ber)
[in] | ber | BER value |
Set the Bit Error Rate (BER) value to display
119
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_set_measurement_mode#
void cs_initiator_display_set_measurement_mode (sl_bt_cs_mode_t mode, uint8_t algo_mode)
[in] | mode | CS measurement mode. |
[in] | algo_mode | Object tracking mode. |
Set the measurement mode and object tracking mode to display
127
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_print_float_value#
void cs_initiator_display_print_float_value (float value, uint8_t row, char * unit)
[in] | value | the calculated value |
[in] | row | number of the row to print on, see cs_initiator_display_row_t |
[in] | unit | unit string, in case of NULL no unit displayed |
Print floating point value on the LCD with an optional unit string.
137
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_on_event#
void cs_initiator_display_on_event (sl_bt_msg_t * evt)
[in] | evt | Event coming from the Bluetooth stack. |
Bluetooth stack event handler.
148
of file common/cs_initiator_display/inc/cs_initiator_display.h
cs_initiator_display_init#
sl_status_t cs_initiator_display_init (void )
N/A |
Initialize the display.
108
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
cs_initiator_display_update#
void cs_initiator_display_update (void )
N/A |
Update the display.
113
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
cs_initiator_display_set_alignment#
void cs_initiator_display_set_alignment (cs_initiator_display_alignment_t align)
[in] | align | text alignment to use |
Set the display text alignment.
120
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
cs_initiator_display_write_text#
void cs_initiator_display_write_text (char * str, uint8_t row)
[in] | str | pointer to the text to print |
[in] | row | row to print the text on |
Write text on the LCD.
128
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
Macro Definition Documentation#
CS_INITIATOR_DISPLAY_LOG#
#define CS_INITIATOR_DISPLAY_LOGValue:
(1)
44
of file common/cs_initiator_display/config/cs_initiator_display_config.h
CS_INITIATOR_DISPLAY_GLOBAL_ALIGNMENT#
#define CS_INITIATOR_DISPLAY_GLOBAL_ALIGNMENTValue:
CS_INITIATOR_DISPLAY_ALIGNMENT_LEFT
53
of file common/cs_initiator_display/config/cs_initiator_display_config.h
CS_INITIATOR_DISPLAY_TITLE_VENDOR_TEXT#
#define CS_INITIATOR_DISPLAY_TITLE_VENDOR_TEXTValue:
"Silicon Labs"
52
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_TITLE_DEVICE_TEXT#
#define CS_INITIATOR_DISPLAY_TITLE_DEVICE_TEXTValue:
"CS Initiator"
53
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_MODE_TEXT#
#define CS_INITIATOR_DISPLAY_MODE_TEXTValue:
"Mode:"
55
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_DISTANCE_TEXT#
#define CS_INITIATOR_DISPLAY_DISTANCE_TEXTValue:
"Distance:"
56
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_RSSI_DISTANCE_TEXT#
#define CS_INITIATOR_DISPLAY_RSSI_DISTANCE_TEXTValue:
"Distance [RSSI]:"
57
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_LIKELINESS_TEXT#
#define CS_INITIATOR_DISPLAY_LIKELINESS_TEXTValue:
"Likeliness:"
58
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_BER_TEXT#
#define CS_INITIATOR_DISPLAY_BER_TEXTValue:
"Bit error:"
59
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_STATE_ESTIMATE_TEXT#
#define CS_INITIATOR_DISPLAY_STATE_ESTIMATE_TEXTValue:
"ST: Estimate"
61
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_STATE_CONNECTED_TEXT#
#define CS_INITIATOR_DISPLAY_STATE_CONNECTED_TEXTValue:
"ST: Connected"
62
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_STATE_DISCONNECTED_TEXT#
#define CS_INITIATOR_DISPLAY_STATE_DISCONNECTED_TEXTValue:
"ST: Disconnected"
63
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_STATE_SCANNING_TEXT#
#define CS_INITIATOR_DISPLAY_STATE_SCANNING_TEXTValue:
"ST: Scanning..."
64
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_STATE_INITIALIZED_TEXT#
#define CS_INITIATOR_DISPLAY_STATE_INITIALIZED_TEXTValue:
"ST: Initialized"
65
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_MODE_RTT_TEXT#
#define CS_INITIATOR_DISPLAY_MODE_RTT_TEXTValue:
"RTT"
67
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_MODE_PBR_TEXT#
#define CS_INITIATOR_DISPLAY_MODE_PBR_TEXTValue:
"PBR"
68
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_AMODE_STATIONARY_OBJ_TEXT#
#define CS_INITIATOR_DISPLAY_AMODE_STATIONARY_OBJ_TEXTValue:
" [stationary]"
69
of file common/cs_initiator_display/inc/cs_initiator_display.h
CS_INITIATOR_DISPLAY_AMODE_MOVING_OBJ_TEXT#
#define CS_INITIATOR_DISPLAY_AMODE_MOVING_OBJ_TEXTValue:
" [moving ]"
70
of file common/cs_initiator_display/inc/cs_initiator_display.h
NL#
#define NL
68
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
display_log_debug#
#define display_log_debug
69
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
display_log_info#
#define display_log_info
70
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
display_log_warning#
#define display_log_warning
71
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
display_log_error#
#define display_log_error
72
of file common/cs_initiator_display/inc/cs_initiator_display_core.h
display_log_critical#
#define display_log_critical
73
of file common/cs_initiator_display/inc/cs_initiator_display_core.h