DJI Onboard SDK  4.0
Namespaces | Macros
dji_platform.hpp File Reference

Vehicle API for DJI onboardSDK library. More...

#include "osdk_platform.h"
#include "dji_singleton.hpp"
#include "osdk_logger.h"
Include dependency graph for dji_platform.hpp:

Go to the source code of this file.

Namespaces

 DJI
 handle array of characters
 
 DJI::OSDK
 

Macros

#define DJI_REG_UART_HANDLER(handlerPtr)
 
#define DJI_REG_OSAL_HANDLER(handlerPtr)
 
#define DJI_REG_LOGGER_CONSOLE(consolePtr)
 
#define DJI_TASK_CREATE(taskPtr, taskFunc, stackSize, arg)
 
#define DJI_TASK_DESTROY(task)
 
#define DJI_TASK_SLEEP_MS(timeMs)
 
#define DJI_MUTEX_CREATE(mutexPtr)
 
#define DJI_MUTEX_DESTROY(mutex)
 
#define DJI_MUTEX_LOCK(mutex)
 
#define DJI_MUTEX_UNLOCK(mutex)
 
#define DJI_SEM_CREATE(semPtr, initValue)
 
#define DJI_SEM_DESTROY(sem)
 
#define DJI_SEM_POST(sem)
 
#define DJI_SEM_WAIT(sem)
 
#define DJI_SEM_TIMED_WAIT(sem, waitTime)
 
#define DJI_MEM_MALLOC(size)
 
#define DJI_MEM_FREE(ptr)
 
#define DJI_GET_TIME_MS(msPtr)
 

Detailed Description

Vehicle API for DJI onboardSDK library.

Version
3.3
Date
April 2017

@Copyright (c) 2017 DJI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Macro Definition Documentation

◆ DJI_GET_TIME_MS

#define DJI_GET_TIME_MS (   msPtr)
Value:
DJI::OSDK::Platform::instance() \
.getTimeMs(msPtr)

◆ DJI_MEM_FREE

#define DJI_MEM_FREE (   ptr)
Value:
DJI::OSDK::Platform::instance() \
.free(ptr)

◆ DJI_MEM_MALLOC

#define DJI_MEM_MALLOC (   size)
Value:
DJI::OSDK::Platform::instance() \
.malloc(size)

◆ DJI_MUTEX_CREATE

#define DJI_MUTEX_CREATE (   mutexPtr)
Value:
DJI::OSDK::Platform::instance() \
.mutexCreate(mutexPtr)

◆ DJI_MUTEX_DESTROY

#define DJI_MUTEX_DESTROY (   mutex)
Value:
DJI::OSDK::Platform::instance() \
.mutexDestroy(mutex)

◆ DJI_MUTEX_LOCK

#define DJI_MUTEX_LOCK (   mutex)
Value:
DJI::OSDK::Platform::instance() \
.mutexLock(mutex)

◆ DJI_MUTEX_UNLOCK

#define DJI_MUTEX_UNLOCK (   mutex)
Value:
DJI::OSDK::Platform::instance() \
.mutexUnlock(mutex)

◆ DJI_REG_LOGGER_CONSOLE

#define DJI_REG_LOGGER_CONSOLE (   consolePtr)
Value:
DJI::OSDK::Platform::instance() \
.registerLoggerConsole(consolePtr)

◆ DJI_REG_OSAL_HANDLER

#define DJI_REG_OSAL_HANDLER (   handlerPtr)
Value:
DJI::OSDK::Platform::instance() \
.registerOsalHandler(handlerPtr)

◆ DJI_REG_UART_HANDLER

#define DJI_REG_UART_HANDLER (   handlerPtr)
Value:
DJI::OSDK::Platform::instance() \
.registerHalUartHandler(handlerPtr)

◆ DJI_SEM_CREATE

#define DJI_SEM_CREATE (   semPtr,
  initValue 
)
Value:
DJI::OSDK::Platform::instance() \
.semaphoreCreate(mutexPtr, initValue)

◆ DJI_SEM_DESTROY

#define DJI_SEM_DESTROY (   sem)
Value:
DJI::OSDK::Platform::instance() \
.semaphoreDestroy(sem)

◆ DJI_SEM_POST

#define DJI_SEM_POST (   sem)
Value:
DJI::OSDK::Platform::instance() \
.semaphorePost(sem)

◆ DJI_SEM_TIMED_WAIT

#define DJI_SEM_TIMED_WAIT (   sem,
  waitTime 
)
Value:
DJI::OSDK::Platform::instance() \
.semaphoreTimedWait(sem, waitTime)

◆ DJI_SEM_WAIT

#define DJI_SEM_WAIT (   sem)
Value:
DJI::OSDK::Platform::instance() \
.semaphoreWait(sem)

◆ DJI_TASK_CREATE

#define DJI_TASK_CREATE (   taskPtr,
  taskFunc,
  stackSize,
  arg 
)
Value:
DJI::OSDK::Platform::instance() \
.taskCreate(taskPtr, taskFunc, stackSize, arg)

◆ DJI_TASK_DESTROY

#define DJI_TASK_DESTROY (   task)
Value:
DJI::OSDK::Platform::instance() \
.taskDestroy(task)

◆ DJI_TASK_SLEEP_MS

#define DJI_TASK_SLEEP_MS (   timeMs)
Value:
DJI::OSDK::Platform::instance() \
.taskSleepMs(timeMs)