sm_led_indication
State machine mapping operating and fault states to RGB LED indication states.
Inherited Component
Inherited Requirements
Relationship Diagram
SW Unit Relations
Incoming Relations
Relation |
UML Type |
Visibility |
Source Unit |
Description |
|---|---|---|---|---|
composition |
private |
Status indication active object embeds LED indication state machine. |
Data Types
Internal runtime context for sm_led_indication.
Struct Members
Name |
Type |
Description |
|---|---|---|
sm_state |
LED SM current state. |
|
pattern_code |
Active pattern code. |
|
blink_enabled |
Blink state. |
|
transition_tick |
Last transition tick. |
Event payload handled by sm_led_indication.
Struct Members
Name |
Type |
Description |
|---|---|---|
signal_id |
LED SM event id. |
|
mode_code |
Mode code input. |
|
warning_active |
Warning input. |
|
fault_active |
Fault input. |
Result code for sm_led_indication operations.
Enum Members
Name |
Value |
Description |
|---|---|---|
OK |
0 |
LED SM transition applied. |
INVALID_TRANSITION |
1 |
Transition rejected by guard. |
PATTERN_LATCHED |
2 |
Fault pattern latched. |
Attributes
Attribute |
Type |
Visibility |
Description |
|---|---|---|---|
ctx |
private |
Runtime context for sm_led_indication state timing and error tracking. |
Methods
dispatch
Return Type: sm_led_indication_result
Visibility: public
Description: Process one sm_led_indication event and update runtime outputs.
Parameters
Name |
Type |
Direction |
Description |
|---|---|---|---|
event |
in |
Process one sm_led_indication event and update runtime outputs. |
init
Return Type: sm_led_indication_result
Visibility: public
Description: Initialize sm_led_indication runtime state and dependencies.
Dynamic Behaviour
State Machines
sm_led_indication_state
This state machine defines LED priority rules mapping normal warning protective and fault context into deterministic visual indications and ensures fault signaling dominates lower severity status outputs until explicit clear.
Sequence Diagrams
SEQ-003_Status_To_LED_Indication
Diagnostics status outputs are transformed by status indication logic into concrete LED driver commands.