PDK API Guide for J721E
|
ClockP interface
Files | |
file | ClockP.h |
Clock module for the RTOS Porting Interface. This implements the software timer support. For hardware timer support, please check TimerP.h. | |
Data Structures | |
struct | ClockP_Params |
Basic ClockP Parameters. More... | |
Functions | |
void | ClockP_Params_init (ClockP_Params *params) |
Initialize params structure to default values. More... | |
ClockP_Handle | ClockP_create (void *clockfxn, const ClockP_Params *params) |
Function to create a clock. More... | |
ClockP_Status | ClockP_delete (ClockP_Handle handle) |
Function to delete a clock. More... | |
ClockP_Status | ClockP_start (ClockP_Handle handle) |
Function to start a clock. More... | |
ClockP_Status | ClockP_stop (ClockP_Handle handle) |
Function to stop a clock. More... | |
Typedefs | |
typedef void * | ClockP_Handle |
Opaque client reference to an instance of a ClockP. More... | |
Enumerations | |
enum | ClockP_Status { ClockP_OK = 0, ClockP_FAILURE = (-(int32_t)1) } |
Status codes for ClockP APIs. More... | |
enum | ClockP_RunMode { ClockP_RunMode_ONESHOT, ClockP_RunMode_CONTINUOUS } |
Timer runtime modes for ClockP APIs. More... | |
enum | ClockP_StartMode { ClockP_StartMode_USER, ClockP_StartMode_AUTO } |
Timer start modes for ClockP APIs. More... | |
typedef void* ClockP_Handle |
Opaque client reference to an instance of a ClockP.
A ClockP_Handle returned from the ClockP_create represents that instance and is used in the other instance based functions
enum ClockP_Status |
enum ClockP_RunMode |
enum ClockP_StartMode |
void ClockP_Params_init | ( | ClockP_Params * | params | ) |
Initialize params structure to default values.
params | Pointer to the instance configuration parameters. |
ClockP_Handle ClockP_create | ( | void * | clockfxn, |
const ClockP_Params * | params | ||
) |
Function to create a clock.
clockfxn | Function pointer of the clock function. |
params | Pointer to the instance configuration parameters. |
ClockP_Status ClockP_delete | ( | ClockP_Handle | handle | ) |
Function to delete a clock.
handle | A ClockP_Handle returned from ClockP_create |
ClockP_Status ClockP_start | ( | ClockP_Handle | handle | ) |
Function to start a clock.
handle | A ClockP_Handle returned from ClockP_create |
ClockP_Status ClockP_stop | ( | ClockP_Handle | handle | ) |
Function to stop a clock.
handle | A ClockP_Handle returned from ClockP_create |