CS Initiator Display#

Prints Channel Sounding (CS) Initiator status information to the LCD of the WSTK.

Modules#

cs_initiator_display_content_t

Enumerations#

enum
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
}

Display rows.

enum
CS_INITIATOR_DISPLAY_ALIGNMENT_LEFT = 0u
CS_INITIATOR_DISPLAY_ALIGNMENT_CENTER
CS_INITIATOR_DISPLAY_ALIGNMENT_RIGHT
}

UI alignment.

Functions#

void
void
cs_initiator_display_set_measurement_mode(sl_bt_cs_mode_t mode, uint8_t algo_mode)
void
cs_initiator_display_print_float_value(float value, uint8_t row, char *unit)
void
sl_status_t
void
cs_initiator_display_set_alignment(cs_initiator_display_alignment_t align)
void
cs_initiator_display_write_text(char *str, uint8_t row)

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

Definition at line 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

Definition at line 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)
Parameters
[in]distance

Distance value

Set distance value to display


Definition at line 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)
Parameters
[in]progress_percentage

Distance progress percentage

Set distance progress percentage to display


Definition at line 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)
Parameters
[in]distance

RSSI distance value

Set RSSI based distance value to display


Definition at line 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)
Parameters
[in]likeliness

likeliness value

Set the likeliness parameter to display


Definition at line 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)
Parameters
[in]ber

BER value

Set the Bit Error Rate (BER) value to display


Definition at line 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)
Parameters
[in]mode

CS measurement mode.

[in]algo_mode

Object tracking mode.

Set the measurement mode and object tracking mode to display


Definition at line 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)
Parameters
[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.


Definition at line 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)
Parameters
[in]evt

Event coming from the Bluetooth stack.

Bluetooth stack event handler.


Definition at line 148 of file common/cs_initiator_display/inc/cs_initiator_display.h

cs_initiator_display_init#

sl_status_t cs_initiator_display_init (void )
Parameters
N/A

Initialize the display.


Definition at line 108 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

cs_initiator_display_update#

void cs_initiator_display_update (void )
Parameters
N/A

Update the display.


Definition at line 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)
Parameters
[in]align

text alignment to use

Set the display text alignment.


Definition at line 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)
Parameters
[in]str

pointer to the text to print

[in]row

row to print the text on

Write text on the LCD.


Definition at line 128 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

Macro Definition Documentation#

CS_INITIATOR_DISPLAY_LOG#

#define CS_INITIATOR_DISPLAY_LOG
Value:
(1)

Definition at line 44 of file common/cs_initiator_display/config/cs_initiator_display_config.h

CS_INITIATOR_DISPLAY_GLOBAL_ALIGNMENT#

#define CS_INITIATOR_DISPLAY_GLOBAL_ALIGNMENT
Value:
CS_INITIATOR_DISPLAY_ALIGNMENT_LEFT

Definition at line 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_TEXT
Value:
"Silicon Labs"

Definition at line 52 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_TITLE_DEVICE_TEXT#

#define CS_INITIATOR_DISPLAY_TITLE_DEVICE_TEXT
Value:
"CS Initiator"

Definition at line 53 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_MODE_TEXT#

#define CS_INITIATOR_DISPLAY_MODE_TEXT
Value:
"Mode:"

Definition at line 55 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_DISTANCE_TEXT#

#define CS_INITIATOR_DISPLAY_DISTANCE_TEXT
Value:
"Distance:"

Definition at line 56 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_RSSI_DISTANCE_TEXT#

#define CS_INITIATOR_DISPLAY_RSSI_DISTANCE_TEXT
Value:
"Distance [RSSI]:"

Definition at line 57 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_LIKELINESS_TEXT#

#define CS_INITIATOR_DISPLAY_LIKELINESS_TEXT
Value:
"Likeliness:"

Definition at line 58 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_BER_TEXT#

#define CS_INITIATOR_DISPLAY_BER_TEXT
Value:
"Bit error:"

Definition at line 59 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_STATE_ESTIMATE_TEXT#

#define CS_INITIATOR_DISPLAY_STATE_ESTIMATE_TEXT
Value:
"ST: Estimate"

Definition at line 61 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_STATE_CONNECTED_TEXT#

#define CS_INITIATOR_DISPLAY_STATE_CONNECTED_TEXT
Value:
"ST: Connected"

Definition at line 62 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_STATE_DISCONNECTED_TEXT#

#define CS_INITIATOR_DISPLAY_STATE_DISCONNECTED_TEXT
Value:
"ST: Disconnected"

Definition at line 63 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_STATE_SCANNING_TEXT#

#define CS_INITIATOR_DISPLAY_STATE_SCANNING_TEXT
Value:
"ST: Scanning..."

Definition at line 64 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_STATE_INITIALIZED_TEXT#

#define CS_INITIATOR_DISPLAY_STATE_INITIALIZED_TEXT
Value:
"ST: Initialized"

Definition at line 65 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_MODE_RTT_TEXT#

#define CS_INITIATOR_DISPLAY_MODE_RTT_TEXT
Value:
"RTT"

Definition at line 67 of file common/cs_initiator_display/inc/cs_initiator_display.h

CS_INITIATOR_DISPLAY_MODE_PBR_TEXT#

#define CS_INITIATOR_DISPLAY_MODE_PBR_TEXT
Value:
"PBR"

Definition at line 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_TEXT
Value:
" [stationary]"

Definition at line 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_TEXT
Value:
" [moving    ]"

Definition at line 70 of file common/cs_initiator_display/inc/cs_initiator_display.h

NL#

#define NL

Definition at line 68 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

display_log_debug#

#define display_log_debug

Definition at line 69 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

display_log_info#

#define display_log_info

Definition at line 70 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

display_log_warning#

#define display_log_warning

Definition at line 71 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

display_log_error#

#define display_log_error

Definition at line 72 of file common/cs_initiator_display/inc/cs_initiator_display_core.h

display_log_critical#

#define display_log_critical

Definition at line 73 of file common/cs_initiator_display/inc/cs_initiator_display_core.h