Macros | Typedefs
sl_types.h File Reference
#include <stdint.h>
Include dependency graph for sl_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __attribute__(x)
 
#define SL_DEFINE_INT_TYPE(Bits)
 
#define SL_DEFINE_TYPE(IntType, NewType)   typedef IntType NewType
 
#define SL_IS_FAIL(x)   ( ((x) & SL_RESULT_FAIL_BIT) )
 
#define SL_IS_OK(x)   ( ((x) & SL_RESULT_FAIL_BIT) == 0 )
 
#define SL_RESULT_ALREADY_DONE   (sl_result)0x20
 
#define SL_RESULT_FAIL_BIT   (sl_result)0x80000000
 
#define SL_RESULT_FORMAT_NOT_SUPPORT   (sl_result)(0x8005 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_INSUFFICIENT_MEMORY   (sl_result)(0x8006 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_INVALID_DATA   (sl_result)(0x8000 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_OK   (sl_result)0
 
#define SL_RESULT_OPERATION_FAIL   (sl_result)(0x8001 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_OPERATION_NOT_SUPPORT   (sl_result)(0x8004 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_OPERATION_STOP   (sl_result)(0x8003 | SL_RESULT_FAIL_BIT)
 
#define SL_RESULT_OPERATION_TIMEOUT   (sl_result)(0x8002 | SL_RESULT_FAIL_BIT)
 

Typedefs

typedef uint32_t sl_result
 

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   x)

Definition at line 56 of file sl_types.h.

◆ SL_DEFINE_INT_TYPE

#define SL_DEFINE_INT_TYPE (   Bits)
Value:
SL_DEFINE_TYPE(int ## Bits ## _t, sl_s ## Bits); \
SL_DEFINE_TYPE(uint ## Bits ## _t, sl_u ## Bits); \

Definition at line 46 of file sl_types.h.

◆ SL_DEFINE_TYPE

#define SL_DEFINE_TYPE (   IntType,
  NewType 
)    typedef IntType NewType

Definition at line 43 of file sl_types.h.

◆ SL_IS_FAIL

#define SL_IS_FAIL (   x)    ( ((x) & SL_RESULT_FAIL_BIT) )

Definition at line 83 of file sl_types.h.

◆ SL_IS_OK

#define SL_IS_OK (   x)    ( ((x) & SL_RESULT_FAIL_BIT) == 0 )

Definition at line 82 of file sl_types.h.

◆ SL_RESULT_ALREADY_DONE

#define SL_RESULT_ALREADY_DONE   (sl_result)0x20

Definition at line 73 of file sl_types.h.

◆ SL_RESULT_FAIL_BIT

#define SL_RESULT_FAIL_BIT   (sl_result)0x80000000

Definition at line 72 of file sl_types.h.

◆ SL_RESULT_FORMAT_NOT_SUPPORT

#define SL_RESULT_FORMAT_NOT_SUPPORT   (sl_result)(0x8005 | SL_RESULT_FAIL_BIT)

Definition at line 79 of file sl_types.h.

◆ SL_RESULT_INSUFFICIENT_MEMORY

#define SL_RESULT_INSUFFICIENT_MEMORY   (sl_result)(0x8006 | SL_RESULT_FAIL_BIT)

Definition at line 80 of file sl_types.h.

◆ SL_RESULT_INVALID_DATA

#define SL_RESULT_INVALID_DATA   (sl_result)(0x8000 | SL_RESULT_FAIL_BIT)

Definition at line 74 of file sl_types.h.

◆ SL_RESULT_OK

#define SL_RESULT_OK   (sl_result)0

Definition at line 71 of file sl_types.h.

◆ SL_RESULT_OPERATION_FAIL

#define SL_RESULT_OPERATION_FAIL   (sl_result)(0x8001 | SL_RESULT_FAIL_BIT)

Definition at line 75 of file sl_types.h.

◆ SL_RESULT_OPERATION_NOT_SUPPORT

#define SL_RESULT_OPERATION_NOT_SUPPORT   (sl_result)(0x8004 | SL_RESULT_FAIL_BIT)

Definition at line 78 of file sl_types.h.

◆ SL_RESULT_OPERATION_STOP

#define SL_RESULT_OPERATION_STOP   (sl_result)(0x8003 | SL_RESULT_FAIL_BIT)

Definition at line 77 of file sl_types.h.

◆ SL_RESULT_OPERATION_TIMEOUT

#define SL_RESULT_OPERATION_TIMEOUT   (sl_result)(0x8002 | SL_RESULT_FAIL_BIT)

Definition at line 76 of file sl_types.h.

Typedef Documentation

◆ sl_result

typedef uint32_t sl_result

Definition at line 69 of file sl_types.h.

SL_DEFINE_TYPE
#define SL_DEFINE_TYPE(IntType, NewType)
Definition: sl_types.h:43


rplidar_ros
Author(s):
autogenerated on Fri Aug 2 2024 08:42:14