sm_protection
State machine governing protective entry hold and exit.
Inherited Component
Inherited Requirements
Relationship Diagram
SW Unit Relations
Incoming Relations
Relation |
UML Type |
Visibility |
Source Unit |
Description |
|---|---|---|---|---|
composition |
private |
Safety active object embeds protection state machine. |
Data Types
Internal runtime context for sm_protection.
Struct Members
Name |
Type |
Description |
|---|---|---|
sm_state |
Protection SM state. |
|
hazard_latched |
Hazard latch state. |
|
override_forced |
Forced override state. |
|
transition_tick |
Last transition tick. |
Event payload handled by sm_protection.
Struct Members
Name |
Type |
Description |
|---|---|---|
signal_id |
Protection SM event id. |
|
hazard_detected |
Hazard trigger input. |
|
clear_request |
Clear request input. |
|
sensor_valid |
Sensor validity guard input. |
Result code for sm_protection operations.
Enum Members
Name |
Value |
Description |
|---|---|---|
OK |
0 |
Protection transition applied. |
INVALID_TRANSITION |
1 |
Transition blocked by guards. |
LATCH_ACTIVE |
2 |
Hazard latch remains active. |
Attributes
Attribute |
Type |
Visibility |
Description |
|---|---|---|---|
ctx |
private |
Runtime context for sm_protection state timing and error tracking. |
Methods
dispatch
Return Type: sm_protection_result
Visibility: public
Description: Process one sm_protection event and update runtime outputs.
Parameters
Name |
Type |
Direction |
Description |
|---|---|---|---|
event |
in |
Process one sm_protection event and update runtime outputs. |
init
Return Type: sm_protection_result
Visibility: public
Description: Initialize sm_protection runtime state and dependencies.
Dynamic Behaviour
State Machines
sm_protection_state
This state machine specifies protection entry hold and guarded exit behavior including hazard source latching mandatory output disable enforcement and clear condition evaluation that prevents unsafe return to normal operation.