AutosarOS
|
Implementation of counter management. More...
#include "Counter.h"
#include "ScheduleTables.h"
#include "OCB.h"
#include "OS_API.h"
#include <util/atomic.h>
Go to the source code of this file.
Functions | |
StatusType | Counter_IncrementCounter (CounterType counterID) |
Increment counter. More... | |
StatusType | Counter_GetCounterValue (CounterType counterID, TickRefType value) |
Read current counter value. More... | |
StatusType | Counter_GetElapsedValue (CounterType counterID, TickRefType value, TickRefType elapsedValue) |
Get elapse counter value. More... | |
Implementation of counter management.
Definition in file Counter.c.
StatusType Counter_GetCounterValue | ( | CounterType | counterID, |
TickRefType | value | ||
) |
Read current counter value.
This service reads the current count value of a counter.
counterID | Counter which tick value should be read |
value | Contains the current tick value of the counter |
Definition at line 51 of file Counter.c.
StatusType Counter_GetElapsedValue | ( | CounterType | counterID, |
TickRefType | value, | ||
TickRefType | elapsedValue | ||
) |
Get elapse counter value.
This service gets the number of ticks between the current tick value and a previously read tick value.
counterID | The counter to be read |
value | Previously read tick value (contains the current tick afterwards) |
elapsedValue | Difference between previous and current value |
StatusType Counter_IncrementCounter | ( | CounterType | counterID | ) |