RTEMS: cpukit/include/rtems/counter.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Typedefs | Functions
counter.h File Reference
API » Classic » Free-Running Counter and Busy Wait Delay

Free-Running Counter and Busy Wait Delay API. More...

`#include <rtems/score/cpu.h>`

Go to the source code of this file.

## Typedefs
typedef CPU_Counter_ticks | rtems_counter_ticks
| Unsigned integer type for counter values.

## Functions
uint64_t | rtems_counter_ticks_to_nanoseconds (rtems_counter_ticks ticks)
| Converts counter ticks into nanoseconds.
rtems_counter_ticks | rtems_counter_nanoseconds_to_ticks (uint32_t nanoseconds)
| Converts nanoseconds into counter ticks.
int64_t | rtems_counter_ticks_to_sbintime (rtems_counter_ticks ticks)
| Converts counter ticks into signed binary time (sbintime_t).
rtems_counter_ticks | rtems_counter_sbintime_to_ticks (int64_t sbt)
| Converts signed binary time (sbintime_t) into counter ticks.
void | rtems_counter_initialize_converter (uint32_t frequency)
| Initializes the counter ticks to/from nanoseconds converter functions.
void | rtems_counter_delay_ticks (rtems_counter_ticks ticks)
| Busy wait for some counter ticks.
void | rtems_counter_delay_nanoseconds (uint32_t nanoseconds)
| Busy wait for some nanoseconds.

## Detailed Description

Free-Running Counter and Busy Wait Delay API.