Module grisp_rtems

GRiSP RTEMS functions.

Description

GRiSP RTEMS functions.

NIF mappings to RTEMS functions.

Data Types

time_of_day()

time_of_day() = {calendar:datetime(), Ticks::non_neg_integer()}

Function Index

clock_get_ticks_per_second/0Gets the number of clock ticks per second configured for the application.
clock_get_ticks_since_boot/0Gets the number of clock ticks since some time point during the system initialization or the last overflow of the clock tick counter.
clock_get_tod/0Gets the time of day associated with the current CLOCK_REALTIME.
clock_set/1Sets the CLOCK_REALTIME to the time of day.
pwrite/3Perform a raw pwrite syscall to a device.
unmount/1Unmounts the file system instance at the specified mount path.

Function Details

clock_get_ticks_per_second/0

clock_get_ticks_per_second() -> integer()

Gets the number of clock ticks per second configured for the application.

Reference: rtems_clock_get_ticks_per_second

clock_get_ticks_since_boot/0

clock_get_ticks_since_boot() -> integer()

Gets the number of clock ticks since some time point during the system initialization or the last overflow of the clock tick counter.

Reference: rtems_clock_get_ticks_since_boot

clock_get_tod/0

clock_get_tod() -> time_of_day()

Gets the time of day associated with the current CLOCK_REALTIME.

Reference: rtems_clock_get_tod

clock_set/1

clock_set(X1::time_of_day()) -> integer()

Sets the CLOCK_REALTIME to the time of day.

Reference: rtems_clock_set

pwrite/3

pwrite(DevicePath::binary() | iolist(), Buffer::binary() | iolist(), Offset::integer()) -> {ok, integer()} | {error, atom(), list()}

Perform a raw pwrite syscall to a device.

The function is approximately equivalent to the C code:
 fd = open(device_path, O_RDWR);
 pwrite(fd, buffer.data, buffer.size, offset);
Reference: pwrite

unmount/1

unmount(Path::iodata()) -> ok | {error, list()}

Unmounts the file system instance at the specified mount path.

Reference: rtems_unmount


Generated by EDoc