Livox SDK API  V1.1.0
livox_def.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  LivoxSdkVersion
 
struct  LivoxRawPoint
 
struct  LivoxPoint
 
struct  LivoxEthPacket
 
union  StatusUnion
 
struct  DeviceInfo
 
struct  BroadcastDeviceInfo
 
struct  ConnectedLidarInfo
 
struct  LidarModeRequestItem
 
struct  ReturnCode
 
struct  DeviceBroadcastCode
 
struct  RainFogSuppressRequestItem
 
struct  ExtrinsicParameterRequestItem
 
struct  ExtrinsicParameterResponseItem
 
struct  LidarStateItem
 
struct  HandshakeRequest
 
struct  DeviceInformationResponse
 
struct  ErrorMessage
 
struct  SetDeviceIPModeRequest
 
struct  GetDeviceIPModeResponse
 
struct  HeartbeatResponse
 
struct  LidarSetExtrinsicParameterRequest
 
struct  LidarGetExtrinsicParameterResponse
 
struct  HubQueryLidarInformationResponse
 
struct  HubSetModeRequest
 
struct  HubSetModeResponse
 
struct  HubControlSlotPowerRequest
 
struct  HubSetExtrinsicParameterRequest
 
struct  HubSetExtrinsicParameterResponse
 
struct  HubGetExtrinsicParameterRequest
 
struct  HubGetExtrinsicParameterResponse
 
struct  HubQueryLidarStatusResponse
 
struct  HubRainFogSuppressRequest
 
struct  HubRainFogSuppressResponse
 

Macros

#define kMaxLidarCount   32
 
#define LIVOX_SDK_MAJOR_VERSION   1
 
#define LIVOX_SDK_MINOR_VERSION   1
 
#define LIVOX_SDK_PATCH_VERSION   0
 
#define kBroadcastCodeSize   16
 

Enumerations

enum  DeviceType { kDeviceTypeHub = 0, kDeviceTypeLidarMid40 = 1, kDeviceTypeLidarTele = 2, kDeviceTypeLidarHorizon = 3 }
 
enum  LidarState {
  kLidarStateInit = 0, kLidarStateNormal = 1, kLidarStatePowerSaving = 2, kLidarStateStandBy = 3,
  kLidarStateError = 4, kLidarStateUnknown = 5
}
 
enum  LidarMode { kLidarModeNormal = 1, kLidarModePowerSaving = 2, kLidarModeStandby = 3 }
 
enum  LidarFeature { kLidarFeatureNone = 0, kLidarFeatureRainFog = 1 }
 
enum  ResponseStatus {
  kStatusSuccess = 0, kStatusFailure = 1, kStatusNotConnected = 2, kStatusNotSupported = 3,
  kStatusTimeout = 4, kStatusNotEnoughMemory = 5
}
 
enum  DeviceEvent { kEventConnect = 0, kEventDisconnect = 1, kEventStateChange = 2 }
 
enum  TimestampType {
  kTimestampTypeNoSync = 0, kTimestampTypePtp = 1, kTimestampTypeRsvd = 2, kTimestampTypePpsGps = 3,
  kTimestampTypePps = 4, kTimestampTypeUnknown = 5
}
 

Macro Definition Documentation

◆ kBroadcastCodeSize

#define kBroadcastCodeSize   16

Definition at line 96 of file livox_def.h.

◆ kMaxLidarCount

#define kMaxLidarCount   32

Definition at line 30 of file livox_def.h.

◆ LIVOX_SDK_MAJOR_VERSION

#define LIVOX_SDK_MAJOR_VERSION   1

Definition at line 92 of file livox_def.h.

◆ LIVOX_SDK_MINOR_VERSION

#define LIVOX_SDK_MINOR_VERSION   1

Definition at line 93 of file livox_def.h.

◆ LIVOX_SDK_PATCH_VERSION

#define LIVOX_SDK_PATCH_VERSION   0

Definition at line 94 of file livox_def.h.

Enumeration Type Documentation

◆ DeviceEvent

Device update type, indicating the change of device connection or working state.

Enumerator
kEventConnect 

Device is connected.

kEventDisconnect 

Device is removed.

kEventStateChange 

Device working state changes or an error occurs.

Definition at line 74 of file livox_def.h.

◆ DeviceType

enum DeviceType

Device type.

Enumerator
kDeviceTypeHub 

Livox Hub.

kDeviceTypeLidarMid40 

Mid-40.

kDeviceTypeLidarTele 

Tele.

kDeviceTypeLidarHorizon 

Horizon.

Definition at line 33 of file livox_def.h.

◆ LidarFeature

Lidar feature.

Enumerator
kLidarFeatureNone 

No feature.

kLidarFeatureRainFog 

Rain and fog feature.

Definition at line 58 of file livox_def.h.

◆ LidarMode

enum LidarMode

Lidar mode.

Enumerator
kLidarModeNormal 

Normal mode.

kLidarModePowerSaving 

Power-saving mode.

kLidarModeStandby 

Standby mode.

Definition at line 51 of file livox_def.h.

◆ LidarState

enum LidarState

Lidar state.

Enumerator
kLidarStateInit 

Initialization state.

kLidarStateNormal 

Normal work state.

kLidarStatePowerSaving 

Power-saving state.

kLidarStateStandBy 

Standby state.

kLidarStateError 

Error state.

kLidarStateUnknown 

Definition at line 41 of file livox_def.h.

◆ ResponseStatus

Function return value definition.

Enumerator
kStatusSuccess 

Success.

kStatusFailure 

Failure.

kStatusNotConnected 

Requested device is not connected.

kStatusNotSupported 

Operation is not supported on this device.

kStatusTimeout 

Operation timeouts.

kStatusNotEnoughMemory 

No enough memory.

Definition at line 64 of file livox_def.h.

◆ TimestampType

Timestamp sync mode define.

Enumerator
kTimestampTypeNoSync 

No sync signal mode.

kTimestampTypePtp 

1588v2.0 PTP sync mode.

kTimestampTypeRsvd 

Reserved use.

kTimestampTypePpsGps 

pps+gps sync mode.

kTimestampTypePps 

pps only sync mode.

kTimestampTypeUnknown 

Unknown mode.

Definition at line 81 of file livox_def.h.