![]() |
DJI Payload SDK
1.5.3
|
Functions | |
E_PsdkStat | PsdkSys_MutexNew (uint32_t *mutex) |
Declare the mutex container, initialize the mutex, and create mutex ID. More... | |
E_PsdkStat | PsdkSys_MutexDestroy (uint32_t *mutex) |
Delete the created mutex. More... | |
E_PsdkStat | PsdkSys_MutexLock (uint32_t *mutex) |
Acquire and lock the mutex when peripheral access is required. More... | |
E_PsdkStat | PsdkSys_MutexUnlock (uint32_t *mutex) |
Unlock and release the mutex, when done with the peripheral access. More... | |
E_PsdkStat | PsdkSys_SemaphoreNew (uint32_t *semaphore, uint32_t count) |
Declare the semaphore container, initialize the semaphore, and create semaphore ID. More... | |
E_PsdkStat | PsdkSys_SemaphoreDestroy (uint32_t *semaphore) |
Delete the created semaphore. More... | |
E_PsdkStat | PsdkSys_SemaphoreTimedWait (uint32_t *semaphore, uint32_t waitTime) |
Wait the semaphore until token becomes available. More... | |
E_PsdkStat | PsdkSys_SemaphorePost (uint32_t *semaphore) |
Release the semaphore token. More... | |
E_PsdkStat PsdkSys_MutexNew | ( | uint32_t * | mutex | ) |
Declare the mutex container, initialize the mutex, and create mutex ID.
mutex | pointer to the created mutex ID. |
mutex | Specifies mutex ID data type. |
E_PsdkStat PsdkSys_MutexDestroy | ( | uint32_t * | mutex | ) |
Delete the created mutex.
mutex | pointer to the created mutex ID. |
mutex | Specifies mutex ID data type. |
E_PsdkStat PsdkSys_MutexLock | ( | uint32_t * | mutex | ) |
Acquire and lock the mutex when peripheral access is required.
mutex | pointer to the created mutex ID. |
mutex | Specifies mutex ID data type. |
E_PsdkStat PsdkSys_MutexUnlock | ( | uint32_t * | mutex | ) |
Unlock and release the mutex, when done with the peripheral access.
mutex | pointer to the created mutex ID. |
mutex | Specifies mutex ID data type. |
E_PsdkStat PsdkSys_SemaphoreNew | ( | uint32_t * | semaphore, |
uint32_t | count | ||
) |
Declare the semaphore container, initialize the semaphore, and create semaphore ID.
semaphore | pointer to the created semaphore ID. |
count | initial value of semaphore. |
semaphore | Specifies semaphore ID data type. |
E_PsdkStat PsdkSys_SemaphoreDestroy | ( | uint32_t * | semaphore | ) |
Delete the created semaphore.
semaphore | pointer to the created semaphore ID. |
semaphore | Specifies semaphore ID data type. |
E_PsdkStat PsdkSys_SemaphoreTimedWait | ( | uint32_t * | semaphore, |
uint32_t | waitTime | ||
) |
Wait the semaphore until token becomes available.
semaphore | pointer to the created semaphore ID. |
waitTime | timeout value of waiting semaphore, unit: millisecond. |
semaphore | Specifies semaphore ID data type. |
E_PsdkStat PsdkSys_SemaphorePost | ( | uint32_t * | semaphore | ) |
Release the semaphore token.
semaphore | pointer to the created semaphore ID. |
semaphore | Specifies semaphore ID data type. |