Main MRPT website > C++ reference for MRPT 1.5.7
Macros | Typedefs | Functions
rptypes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __small_endian
 
#define __attribute__(x)
 
#define RESULT_OK   0
 
#define RESULT_FAIL_BIT   0x80000000
 
#define RESULT_ALREADY_DONE   0x20
 
#define RESULT_INVALID_DATA   (0x8000 | RESULT_FAIL_BIT)
 
#define RESULT_OPERATION_FAIL   (0x8001 | RESULT_FAIL_BIT)
 
#define RESULT_OPERATION_TIMEOUT   (0x8002 | RESULT_FAIL_BIT)
 
#define RESULT_OPERATION_STOP   (0x8003 | RESULT_FAIL_BIT)
 
#define RESULT_OPERATION_NOT_SUPPORT   (0x8004 | RESULT_FAIL_BIT)
 
#define RESULT_FORMAT_NOT_SUPPORT   (0x8005 | RESULT_FAIL_BIT)
 
#define RESULT_INSUFFICIENT_MEMORY   (0x8006 | RESULT_FAIL_BIT)
 
#define IS_OK(x)   ( ((x) & RESULT_FAIL_BIT) == 0 )
 
#define IS_FAIL(x)   ( ((x) & RESULT_FAIL_BIT) )
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char uint8_t
 
typedef __int16 int16_t
 
typedef unsigned __int16 uint16_t
 
typedef __int32 int32_t
 
typedef unsigned __int32 uint32_t
 
typedef __int64 int64_t
 
typedef unsigned __int64 uint64_t
 
typedef int8_t _s8
 
typedef uint8_t _u8
 
typedef int16_t _s16
 
typedef uint16_t _u16
 
typedef int32_t _s32
 
typedef uint32_t _u32
 
typedef int64_t _s64
 
typedef uint64_t _u64
 
typedef uint32_t u_result
 

Functions

typedef _word_size_t (THREAD_PROC *thread_proc_t)(void *)
 

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   x)

Definition at line 77 of file rptypes.h.

◆ __small_endian

#define __small_endian

Definition at line 74 of file rptypes.h.

◆ IS_FAIL

#define IS_FAIL (   x)    ( ((x) & RESULT_FAIL_BIT) )

◆ IS_OK

#define IS_OK (   x)    ( ((x) & RESULT_FAIL_BIT) == 0 )

Definition at line 113 of file rptypes.h.

Referenced by mrpt::hwdrivers::CRoboPeakLidar::getDeviceHealth().

◆ RESULT_ALREADY_DONE

#define RESULT_ALREADY_DONE   0x20

◆ RESULT_FAIL_BIT

#define RESULT_FAIL_BIT   0x80000000

Definition at line 103 of file rptypes.h.

◆ RESULT_FORMAT_NOT_SUPPORT

#define RESULT_FORMAT_NOT_SUPPORT   (0x8005 | RESULT_FAIL_BIT)

Definition at line 110 of file rptypes.h.

◆ RESULT_INSUFFICIENT_MEMORY

#define RESULT_INSUFFICIENT_MEMORY   (0x8006 | RESULT_FAIL_BIT)

◆ RESULT_INVALID_DATA

#define RESULT_INVALID_DATA   (0x8000 | RESULT_FAIL_BIT)

◆ RESULT_OK

#define RESULT_OK   0

Definition at line 102 of file rptypes.h.

Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_cacheCapsuledScanData(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_cacheScanData(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_sendCommand(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitCapsuledNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitResponseHeader(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitScanData(), rp::standalone::rplidar::RPlidarDriverSerialImpl::ascendScanData(), rp::standalone::rplidar::RPlidarDriverSerialImpl::checkExpressScanSupported(), rp::standalone::rplidar::RPlidarDriverSerialImpl::checkMotorCtrlSupport(), rp::standalone::rplidar::RPlidarDriverSerialImpl::connect(), mrpt::hwdrivers::CRoboPeakLidar::doProcessSimple(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getDeviceInfo(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getFrequency(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getHealth(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getSampleDuration_uS(), rp::standalone::rplidar::RPlidarDriverSerialImpl::grabScanData(), rp::hal::Thread::join(), rp::standalone::rplidar::RPlidarDriverSerialImpl::reset(), rp::standalone::rplidar::RPlidarDriverSerialImpl::setMotorPWM(), rp::hal::Thread::setPriority(), rp::standalone::rplidar::RPlidarDriverSerialImpl::startMotor(), rp::standalone::rplidar::RPlidarDriverSerialImpl::startScanExpress(), rp::standalone::rplidar::RPlidarDriverSerialImpl::startScanNormal(), rp::standalone::rplidar::RPlidarDriverSerialImpl::stop(), rp::standalone::rplidar::RPlidarDriverSerialImpl::stopMotor(), and rp::hal::Thread::terminate().

◆ RESULT_OPERATION_FAIL

#define RESULT_OPERATION_FAIL   (0x8001 | RESULT_FAIL_BIT)

◆ RESULT_OPERATION_NOT_SUPPORT

#define RESULT_OPERATION_NOT_SUPPORT   (0x8004 | RESULT_FAIL_BIT)

Definition at line 109 of file rptypes.h.

◆ RESULT_OPERATION_STOP

#define RESULT_OPERATION_STOP   (0x8003 | RESULT_FAIL_BIT)

Definition at line 108 of file rptypes.h.

◆ RESULT_OPERATION_TIMEOUT

#define RESULT_OPERATION_TIMEOUT   (0x8002 | RESULT_FAIL_BIT)

Typedef Documentation

◆ _s16

typedef int16_t _s16

Definition at line 65 of file rptypes.h.

◆ _s32

typedef int32_t _s32

Definition at line 68 of file rptypes.h.

◆ _s64

typedef int64_t _s64

Definition at line 71 of file rptypes.h.

◆ _s8

typedef int8_t _s8

Definition at line 62 of file rptypes.h.

◆ _u16

typedef uint16_t _u16

Definition at line 66 of file rptypes.h.

◆ _u32

typedef uint32_t _u32

Definition at line 69 of file rptypes.h.

◆ _u64

typedef uint64_t _u64

Definition at line 72 of file rptypes.h.

◆ _u8

typedef uint8_t _u8

Definition at line 63 of file rptypes.h.

◆ int16_t

typedef __int16 int16_t

Definition at line 45 of file rptypes.h.

◆ int32_t

typedef __int32 int32_t

Definition at line 48 of file rptypes.h.

◆ int64_t

typedef __int64 int64_t

Definition at line 51 of file rptypes.h.

◆ int8_t

typedef signed char int8_t

Definition at line 42 of file rptypes.h.

◆ u_result

typedef uint32_t u_result

Definition at line 100 of file rptypes.h.

◆ uint16_t

typedef unsigned __int16 uint16_t

Definition at line 46 of file rptypes.h.

◆ uint32_t

typedef unsigned __int32 uint32_t

Definition at line 49 of file rptypes.h.

◆ uint64_t

typedef unsigned __int64 uint64_t

Definition at line 52 of file rptypes.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 43 of file rptypes.h.

Function Documentation

◆ _word_size_t()

typedef _word_size_t ( THREAD_PROC *  thread_proc_t)



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019