kal.h
Overview
Related Modules:
Description:
Defines the kernel adaptation layer (KAL), which provides compatible interfaces across different types of OpenHarmony devices.
Since:
1.0
Version:
1.0
Summary
Data Structures
Macros
Enumerations
KalTimerType { KAL_TIMER_ONCE = 0, KAL_TIMER_PERIODIC = 1 } |
|
KalErrCode { KAL_OK = 0, KAL_ERR_PARA = 1, KAL_ERR_INNER = 2, KAL_ERR_TIMER_STATE = 0x100 } |
Functions
KalThreadGetInfo (unsigned int threadId, ThreadInfo info) |
|
KalDelayUs (unsigned int us) |
|
KalTimerCreate (KalTimerProc func, KalTimerType type, void arg, unsigned int ticks) |
|
KalTimerStart (KalTimerId timerId) |
|
KalTimerChange (KalTimerId timerId, unsigned int ticks) |
|
KalTimerStop (KalTimerId timerId) |
|
KalTimerDelete (KalTimerId timerId) |
|
KalTimerIsRunning (KalTimerId timerId) |
|
KalTickToMs (unsigned int ticks) |
|
KalMsToTick (unsigned int millisec) |
|
KalGetMemInfo (MemInfo *pmemInfo) |