Software Detailed Design
Introduction
The Light Controller is responsible for managing the behavior of the LED based on the system’s power state.
Design Considerations
The light can be in one of two states: ON or OFF. The state transitions are triggered by changes in the system’s power state. |
The color of the light is specified as an RGB value. |
The color of the light shall be fixed but configurable. Note: The color is configurable in the sense that it is specified as a configuration parameter. The color is not configurable at runtime. |
Interfaces
The Light Controller is be called by its runnable |
The Light Controller uses the RTE interface |
The Light Controller uses the RTE interface |
Internal Behavior
The Light Controller is implemented as a state machine. The state machine is shown below. |