54 #ifndef ti_dpl_ClockP__include 55 #define ti_dpl_ClockP__include 73 #define ClockP_STRUCT_SIZE (68) 114 #define ClockP_handle(x) ((ClockP_Handle)(x)) ADC_Params params
Definition: Driver_Init.h:11
bool ClockP_isActive(ClockP_Handle handle)
Determine if a clock object is currently active (i.e., running)
void ClockP_start(ClockP_Handle handle)
Function to start a clock.
uint32_t lo
Definition: ClockP.h:93
void ClockP_setPeriod(ClockP_Handle handle, uint32_t period)
Set the clock period.
uint8_t data[(68)]
Definition: ClockP.h:84
Basic ClockP Parameters.
Definition: ClockP.h:140
ClockP structure.
Definition: ClockP.h:81
ClockP_Handle ClockP_construct(ClockP_Struct *clockP, ClockP_Fxn clockFxn, uint32_t timeout, ClockP_Params *params)
Function to construct a clock object.
uint32_t ClockP_getSystemTicks(void)
Get the current tick value in number of system ticks.
ClockP_Handle ClockP_create(ClockP_Fxn clockFxn, uint32_t timeout, ClockP_Params *params)
Function to create a clock object.
uint32_t ClockP_getSystemTickPeriod(void)
Get the system tick period in number of micro seconds.
#define ClockP_STRUCT_SIZE
Number of bytes greater than or equal to the size of any RTOS ClockP object.
Definition: ClockP.h:73
Frequency-in-hertz struct.
Definition: ClockP.h:90
union ClockP_Struct ClockP_Struct
ClockP structure.
uint32_t ClockP_getTimeout(ClockP_Handle handle)
Get timeout of clock instance.
uint32_t ClockP_getTicksUntilInterrupt(void)
Get number of ClockP tick periods expected to expire between now and the next interrupt from the time...
bool startFlag
Definition: ClockP.h:142
uint32_t dummy
Definition: ClockP.h:83
void ClockP_getCpuFreq(ClockP_FreqHz *freq)
Get CPU frequency in Hertz.
uintptr_t arg
Definition: ClockP.h:144
void ClockP_destruct(ClockP_Struct *clockP)
Function to destruct a clock object.
void(* ClockP_Fxn)(uintptr_t arg)
Prototype for a ClockP callback function.
Definition: ClockP.h:119
ClockP_Status
Status codes for ClockP APIs.
Definition: ClockP.h:99
void ClockP_stop(ClockP_Handle handle)
Function to stop a clock.
void ClockP_sleep(uint32_t sec)
Set delay in seconds.
void ClockP_Params_init(ClockP_Params *params)
Initialize params structure to default values.
void ClockP_delete(ClockP_Handle handle)
Function to delete a clock.
uint32_t hi
Definition: ClockP.h:92
void ClockP_setTimeout(ClockP_Handle handle, uint32_t timeout)
Set the initial timeout.
uint32_t period
Definition: ClockP.h:143
void ClockP_usleep(uint32_t usec)
Set delay in micro seconds.
void * ClockP_Handle
Opaque client reference to an instance of a ClockP.
Definition: ClockP.h:112