Solaris Software
Loading...
Searching...
No Matches
time.h File Reference

SPP HAL time API — dispatches through the registered HAL port. More...

#include "spp/core/types.h"
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

spp_uint32_t SPP_HAL_TIME_getTimeMs (void)
 Return the current hardware time in milliseconds.
spp_uint32_t SPP_HAL_TIME_getTimeUs (void)
 Return the current hardware time in microseconds.
void SPP_HAL_TIME_delayMs (spp_uint32_t ms)
 Block for the requested number of milliseconds.

Detailed Description

SPP HAL time API — dispatches through the registered HAL port.

Naming conventions used in this file:

  • Public functions: SPP_HAL_*()

Definition in file time.h.

Function Documentation

◆ SPP_HAL_TIME_getTimeMs()

spp_uint32_t SPP_HAL_TIME_getTimeMs ( void )

Return the current hardware time in milliseconds.

Returns
Elapsed time in ms (monotonically non-decreasing).

Definition at line 17 of file time.c.

References SPP_HALTime_t::getTimeMs, SPP_HAL_getPort(), SPP_HAL_TIME_getTimeMs(), and SPP_HalPort_t::time.

Referenced by SPP_HAL_TIME_getTimeMs(), and SPP_SERVICES_DATABANK_packetData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SPP_HAL_TIME_getTimeUs()

spp_uint32_t SPP_HAL_TIME_getTimeUs ( void )

Return the current hardware time in microseconds.

Returns
Elapsed time in ms (monotonically non-decreasing).

Definition at line 27 of file time.c.

References SPP_HALTime_t::getTimeUs, SPP_HAL_getPort(), SPP_HAL_TIME_getTimeUs(), and SPP_HalPort_t::time.

Referenced by app_main(), SPP_HAL_TIME_getTimeUs(), and statefunction_bmpPerformanceLoop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SPP_HAL_TIME_delayMs()

void SPP_HAL_TIME_delayMs ( spp_uint32_t ms)

Block for the requested number of milliseconds.

Parameters
[in]msNumber of milliseconds to delay.

Definition at line 37 of file time.c.

References SPP_HALTime_t::delayMs, SPP_HAL_getPort(), SPP_HAL_TIME_delayMs(), and SPP_HalPort_t::time.

Referenced by SPP_HAL_TIME_delayMs(), SPP_SERVICES_BMP390_enableSpiMode(), SPP_SERVICES_BMP390_softReset(), SPP_SERVICES_ICM20948_configDmpInit(), and SPP_SERVICES_M10M_init().

Here is the call graph for this function:
Here is the caller graph for this function: