SWComponent
Button
Logic for the button
SWComponent
Logic for the button
| Required | |
|---|---|
| SIL_1 | |
| Base | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Button | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Logic for the button |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SWComponent_34 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| _5mAcMOZgEeyZ2OzYlvU4PA | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| configuration | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| swc_button | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| false | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| containment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Unit | Parent | Function calls | other Software Elements | Technical Functions | Requirements | Type | Tasks | WCET | Stack | ROM | Globals | ProtectionSets | SIL required | SIL achieved | sub Technical Functions (R) | sub Requirements (R) | Has a return value (R) | SystemStates (R) | Ingoing Trigger Ports (R) | Outgoing Trigger Ports (R) | Ingoing Data Ports (R) | Outgoing Data Ports (R) | Signals (D) | Runnables (D) | DataType (D) | Is Synchronous (D) | Hardware (D) | Ports (G) | Callers (F) | Return Type (F) | Parameters (F) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Reads the current button state from hardware |
InDriver | 0 | 0 | 0 | SIL_1 | QM | - | - | - | - | - | - | - | - | true | - | - | - | - | ||||||||||||
Acquires the button state periodically and provides button signals |
Runnable | 0 | 0 | 0 | SIL_1 | QM | false |
|
|
|
|
- | - | - | - | - | - | - | - | - |
Trigger OUT ports attached to this SWC
| Port | Signal event target | Container |
|---|---|---|
Data IN ports attached to this SWC
| Port | Signals | Source | Container |
|---|---|---|---|
Data OUT ports attached to this SWC
| Port | Signals | Target | Container |
|---|---|---|---|
Hazard Scenarios for associated Hazardous Events.
| Hazard Scenario | Parent | Hazard Events |
|---|---|---|
This would be very sad. |
Hazardous Events for associated Safety Goals.
| Hazardous Event | Parent | Probability | Controllability | Effect | SIL | Safety-Goals |
|---|---|---|---|---|---|---|
The user might think µRTE is hard to use. |
QM | |||||
The customer might not see the full spectrum of features µRTE comes with. |
QM |
Safety Goals linking to the Requirements.
| Safety Goal | Parent | Function Type | SIL derived | SIL manual | SIL required | Safe State | Safety Requirements |
|---|---|---|---|---|---|---|---|
An small demo model with the most important features shall show the most important features of µRTE. |
System_Function | QM | derived | QM | Show slides |
|
Requirements mapped to software units in this SWC.
| (Safety)Requirement | Parent | User-ID | Author | Creation Date | Start Date | Deadline | Expense | Responsibe | Category | Type | Status | Justification | Function Type | SIL derived | SIL manual | SIL required | Tests | Technical Functions | Software | Other SW | Hardware | Signals | Global variables | Activation events | Use-Cases | User-Stories | Refining | Conflicting | refined by | conflicted by |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Global variables can store data for Runnables and other Software Functions. |
SafetyRequirement_94 | Thomas Barth | Wed Jun 08 17:34:15 CEST 2022 | 0.0 | Thomas Barth | product | functional | implemented | System_Function | QM | derived | QM | ||||||||||||||||||
How to read and write data form and to hardware. |
SafetyRequirement_110 | Thomas Barth | Thu Jun 09 20:50:22 CEST 2022 | 0.0 | Thomas Barth | product | functional | approved | System_Function | QM | derived | QM |
Technical functions mapped to software functions in this SWC.
| Function | LFB | Software | Hardware | Other Software | SIL required | SIL achieved | SIL justification | sub Technical Functions | Requirements | sub Requirements |
|---|---|---|---|---|---|---|---|---|---|---|
An LED shall blink to indicate that the system is alive and responding. |
SIL_1 | QM | ||||||||
If the button is pressed, UART messages indicating the press duration are sent. |
SIL_1 | QM |
Tasks executing software units in this SWC
| Task | Core | SIL | Priority | Software | States | Signals | Init | Hardware | OutputSections | Own TimeBase | Stack |
|---|---|---|---|---|---|---|---|---|---|---|---|
Task responsible for reading the button state |
SIL_1 | 6 | - | false |
Signals used by the runnables in this SWC
| Signal | Type | Storage | Runnables OUT | Runnables IN | Tasks | SystemStates | Requirements | miminum Age | maximum Age | Checksum | Force Sync | Inline | ISR API | effective inline | SIL required | SIL achieved | Initial value (D) | Pointer access (D) | Datatype (D) | Alt-In (D) | Alt-Out (D) | In-Driver (D) | Out-Driver (D) | OnData (D) | OnError (D) | OnTrigger (E) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hardware interface for the button |
Data | local in |
0 | 2 | false | false | false | false | false | - | QM | false | false | - | ||||||||||||
A representation of the current button state |
Data | local in |
0 | 105 | false | false | false | false | false | SIL_1 | QM | false | false | - |
|
- | ||||||||||
contains the number of seconds, the button has been pressed |
Data | global in |
0 | 202 | true | false | false | false | false | QM | QM | 0 | false | - | - | |||||||||||
Fired whenever the button is pressed (but not if it is released) |
Event | local in |
0 | 0 | false | false | false | false | false | QM | QM | - | - | - | - | - | - | - | - | - |
|
Sections used by the global variables of this SWC or its software units.
| OutputSection | SIL | References | Initialization | Generate | Section start symbol | Section end symbol | Memory |
|---|---|---|---|---|---|---|---|
a section containing application data for the button |
SIL_1 | UnInit | true | ADRL_uRTE_BUTTON_BEGIN* | ADRL_uRTE_BUTTON_END* | ||
| Symbols marked with * are automatically generated because no value was set. | |||||||
Runnables in other SWCs triggered by runnables in this SWC.
| Unit | Parent | Function calls | other Software Elements | Technical Functions | Requirements | Type | Tasks | WCET | Stack | ROM | Globals | ProtectionSets | SIL required | SIL achieved | sub Technical Functions | sub Requirements) | Has a return value | SystemStates | Ingoing Trigger Ports | Outgoing Trigger Ports | Ingoing Data Ports | Outgoing Data Ports |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sends UART messages periodically via the UART signal |
Runnable | 0 | 0 | 0 | SIL_1 | QM | true |
|
|
|
||||||||||||
Runnable to switch into the UART state if there is an event in the Blink State. |
Runnable | 0 | 0 | 0 | SIL_1 | QM | true |
|
Runnables in other SWCs receiving data from the runnables in this SWC.
| Unit | Parent | Function calls | other Software Elements | Technical Functions | Requirements | Type | Tasks | WCET | Stack | ROM | Globals | ProtectionSets | SIL required | SIL achieved | sub Technical Functions | sub Requirements) | Has a return value | SystemStates | Ingoing Trigger Ports | Outgoing Trigger Ports | Ingoing Data Ports | Outgoing Data Ports |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Controls the LED signal and thus the LED |
Runnable | 0 | 0 | 0 | SIL_1 | QM | false |
|
|
|
||||||||||||
Sends UART messages periodically via the UART signal |
Runnable | 0 | 0 | 0 | SIL_1 | QM | true |
|
|
|
Trigger IN ports attached to the runnables in this SWC.
| Port | Events | Signal event source | Container | Task | Guard | Order |
|---|---|---|---|---|---|---|
|
|
0 |
Activation Events triggering the execution of runnables in this SWC.
| Event | Type | Cycle Time (C) | Offset (C) | Task-Init (S) | Requirements | Ports | Runnables | Tasks | SystemStates | SIL required | SIL achieved |
|---|---|---|---|---|---|---|---|---|---|---|---|
Timebase for button read operations |
CyclicEvent | 200 | 0 | - |
|
SIL_1 | QM |
Cores executing the software units of this SWC and hardware references by the drivers.
| Component | Type | Start | End | SIL required | SIL achieved | Sub-Components | Technical Functions | sub Technical Functions | Requirements | sub Requirements |
|---|---|---|---|---|---|---|---|---|---|---|
Arm® 32-bit Cortex®-M4 CPU with FPU, Adaptive real-time accelerator (ART Accelerator) allowing 0-wait state execution from Flash memory, frequency up to 180 MHz, MPU, 225 DMIPS/1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions |
Core | - | - | - | QM | |||||
B1 [Blue PushButton] on the Nucleo Board |
Periphery | GPIOC_BASE | GPIOD_BASE - 1 | - | QM |