|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
55 #if defined (OS_SAFERTOS)
56 #define ClockP_OBJECT_SIZE_MAX (120u)
58 #define ClockP_OBJECT_SIZE_MAX (104u)
63 typedef struct ClockP_Object_ {
75 typedef struct ClockP_Config_
97 typedef struct ClockP_Params_ {
uint8_t intrPriority
Definition: ClockP.h:82
uint64_t ClockP_getTimeUsec(void)
Get current time in units of usecs.
void * args
Definition: hsmclient_msg.h:4
int32_t ClockP_construct(ClockP_Object *obj, ClockP_Params *params)
Create a clock object.
ClockP_FxnCallback callback
Definition: ClockP.h:102
const char * name
Definition: ClockP.h:109
Opaque clock object used with the clock APIs.
Definition: ClockP.h:63
void ClockP_start(ClockP_Object *obj)
Start the clock, if not already started.
void ClockP_stop(ClockP_Object *obj)
Stop the clock, if not already stopped. No effect if clock is already stopped.
uint32_t usecPerTick
Definition: ClockP.h:81
void ClockP_sleep(uint32_t sec)
Sleep for user specified seconds.
void ClockP_init(void)
Initialize the clock module.
#define ClockP_OBJECT_SIZE_MAX
Max size of clock object across no-RTOS and all OS's.
Definition: ClockP.h:58
void ClockP_destruct(ClockP_Object *obj)
Cleanup, delete, destruct a clock object.
uint32_t start
Definition: ClockP.h:99
void ClockP_setTimeout(ClockP_Object *obj, uint32_t timeout)
Set clock timeout value, takes effect for next clock start.
ClockP module config, set as part of SysConfig, not to be set by end-users directly.
Definition: ClockP.h:76
void ClockP_Params_init(ClockP_Params *params)
Set default values to ClockP_Params.
uint32_t ClockP_getTicks(void)
Get current clock ticks.
Parameters passed during ClockP_construct.
Definition: ClockP.h:97
uint32_t timerBaseAddr
Definition: ClockP.h:77
uint64_t ClockP_ticksToUsec(uint32_t ticks)
Convert clock ticks to usecs.
uint32_t ClockP_isActive(ClockP_Object *obj)
Check if clock is active i.e not expired.
void * args
Definition: ClockP.h:105
uint32_t timerInputPreScaler
Definition: ClockP.h:80
uint32_t period
Definition: ClockP.h:101
void ClockP_usleep(uint32_t usec)
Sleep for user specified usecs.
uint32_t timerHwiIntNum
Definition: ClockP.h:78
uint32_t ClockP_usecToTicks(uint64_t usecs)
Convert usecs to clock ticks.
uint32_t timeout
Definition: ClockP.h:100
uint32_t ClockP_getTimeout(ClockP_Object *obj)
Get current remaining time in units of ticks.
void(* ClockP_FxnCallback)(ClockP_Object *obj, void *args)
Callback that is called when the clock expires.
Definition: ClockP.h:92
uint32_t timerInputClkHz
Definition: ClockP.h:79