drv_rgb_led
Driver unit applying LED command events to RGB hardware channels.
Inherited Component
Inherited Requirements
Relationship Diagram
SW Unit Relations
Outgoing Relations
Relation |
UML Type |
Visibility |
Target Unit |
Description |
|---|---|---|---|---|
dependency |
private |
LED driver uses hardware abstraction events. |
Incoming Relations
Relation |
UML Type |
Visibility |
Source Unit |
Description |
|---|---|---|---|---|
dependency |
public |
Status indication commands LED driver outputs. |
Data Types
Internal runtime context for drv_rgb_led.
Struct Members
Name |
Type |
Description |
|---|---|---|
driver_state |
Driver state. |
|
color_code |
Applied color code. |
|
blink_period_ms |
Applied blink period. |
|
hw_ready |
Hardware readiness. |
Event payload handled by drv_rgb_led.
Struct Members
Name |
Type |
Description |
|---|---|---|
signal_id |
LED driver event id. |
|
requested_color |
Requested color code. |
|
blink_enable |
Blink command. |
|
intensity_pct |
Requested intensity percent. |
Result code for drv_rgb_led operations.
Enum Members
Name |
Value |
Description |
|---|---|---|
OK |
0 |
LED command applied. |
HAL_WRITE_ERROR |
1 |
HAL write failed. |
UNSUPPORTED_PATTERN |
2 |
Pattern not supported. |
Attributes
Attribute |
Type |
Visibility |
Description |
|---|---|---|---|
ctx |
private |
Runtime context for drv_rgb_led state timing and error tracking. |
Methods
dispatch
Return Type: drv_rgb_led_result
Visibility: public
Description: Process one drv_rgb_led event and update runtime outputs.
Parameters
Name |
Type |
Direction |
Description |
|---|---|---|---|
event |
in |
Process one drv_rgb_led event and update runtime outputs. |
init
Return Type: drv_rgb_led_result
Visibility: public
Description: Initialize drv_rgb_led runtime state and dependencies.
Dynamic Behaviour
Activity Diagrams
drv_rgb_led_activity
This activity diagram defines driver level translation from abstract LED intents into hardware channel writes including failure handling behavior when output programming does not complete as requested.
Timing Diagrams
drv_rgb_led_timing
This timing diagram shows driver execution from command reception through hardware mapping and write completion to validate tight actuation timing in the LED indication chain.
Sequence Diagrams
SEQ-003_Status_To_LED_Indication
Diagnostics status outputs are transformed by status indication logic into concrete LED driver commands.