|
AM64x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
55 #define ClockP_OBJECT_SIZE_MAX (104u)
59 typedef struct ClockP_Object_ {
71 typedef struct ClockP_Config_
92 typedef struct ClockP_Params_ {
int32_t ClockP_construct(ClockP_Object *obj, ClockP_Params *params)
Create a clock object.
ClockP_FxnCallback callback
Definition: ClockP.h:97
Opaque clock object used with the clock APIs.
Definition: ClockP.h:59
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:77
void ClockP_sleep(uint32_t sec)
Sleep for user specified seconds.
uint64_t ClockP_getTimeUsec()
Get current time in units of usecs.
#define ClockP_OBJECT_SIZE_MAX
Max size of clock object across no-RTOS and all OS's.
Definition: ClockP.h:55
void ClockP_destruct(ClockP_Object *obj)
Cleanup, delete, destruct a clock object.
uint32_t start
Definition: ClockP.h:94
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:72
void ClockP_Params_init(ClockP_Params *params)
Set default values to ClockP_Params.
Parameters passed during ClockP_construct.
Definition: ClockP.h:92
uint32_t timerBaseAddr
Definition: ClockP.h:73
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:100
void ClockP_init()
Initialize the clock module.
uint32_t timerInputPreScaler
Definition: ClockP.h:76
uint32_t period
Definition: ClockP.h:96
void ClockP_usleep(uint32_t usec)
Sleep for user specified usecs.
uint32_t timerHwiIntNum
Definition: ClockP.h:74
char * name
Definition: ClockP.h:102
uint32_t ClockP_usecToTicks(uint64_t usecs)
Convert usecs to clock ticks.
uint32_t timeout
Definition: ClockP.h:95
uint32_t ClockP_getTicks()
Get current clock ticks.
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:87
uint32_t timerInputClkHz
Definition: ClockP.h:75