LD2410Async
Asynchronous Arduino ESP32 library for the LD2410 mmWave radar sensor
Loading...
Searching...
No Matches
LD2410Defs Namespace Reference

Variables

constexpr size_t LD2410_Buffer_Size = 0x40
 
constexpr byte headData [4] { 0xF4, 0xF3, 0xF2, 0xF1 }
 
constexpr byte tailData [4] { 0xF8, 0xF7, 0xF6, 0xF5 }
 
constexpr byte headConfig [4] { 0xFD, 0xFC, 0xFB, 0xFA }
 
constexpr byte tailConfig [4] { 4, 3, 2, 1 }
 
constexpr byte configEnableCommand = 0xff
 
constexpr byte configEnableCommandData [6] { 4, 0, configEnableCommand, 0, 1, 0 }
 
constexpr byte configDisableCommand = 0xFE
 
constexpr byte configDisableCommandData [4] { 2, 0, configDisableCommand, 0 }
 
constexpr byte requestMacAddressCommand = 0xA5
 
constexpr byte requestMacAddressCommandData [6] { 4, 0, requestMacAddressCommand, 0, 1, 0 }
 
constexpr byte requestFirmwareCommand = 0xA0
 
constexpr byte requestFirmwareCommandData [4] { 2, 0, requestFirmwareCommand, 0 }
 
constexpr byte requestDistanceResolutionCommand = 0xAB
 
constexpr byte requestDistanceResolutionCommandData [4] { 2, 0, requestDistanceResolutionCommand, 0 }
 
constexpr byte setDistanceResolutionCommand = 0xAA
 
constexpr byte setDistanceResolution75cmCommandData [6] { 4, 0, setDistanceResolutionCommand, 0, 0, 0 }
 
constexpr byte setDistanceResolution20cmCommandData [6] { 4, 0, setDistanceResolutionCommand, 0, 1, 0 }
 
constexpr byte setBaudRateCommand = 0xA1
 
constexpr byte setBaudRateCommandData [6] { 4, 0, setBaudRateCommand, 0, 7, 0 }
 
constexpr byte restoreFactorySettingsAsyncCommand = 0xA2
 
constexpr byte restoreFactorSettingsCommandData [4] { 2, 0, restoreFactorySettingsAsyncCommand, 0 }
 
constexpr byte rebootCommand = 0xA3
 
constexpr byte rebootCommandData [4] { 2, 0, rebootCommand, 0 }
 
constexpr byte bluetoothSettingsCommand = 0xA4
 
constexpr byte bluetoothSettingsOnCommandData [6] { 4, 0, bluetoothSettingsCommand, 0, 1, 0 }
 
constexpr byte bluetoothSettingsOffCommandData [6] { 4, 0, bluetoothSettingsCommand, 0, 0, 0 }
 
constexpr byte getBluetoothPermissionsCommand = 0xA8
 
constexpr byte setBluetoothPasswordCommand = 0xA9
 
constexpr byte setBluetoothPasswordCommandData [10] { 8, 0, setBluetoothPasswordCommand, 0, 0x48, 0x69, 0x4C, 0x69, 0x6E, 0x6B }
 
constexpr byte requestParamsCommand = 0x61
 
constexpr byte requestParamsCommandData [4] { 2, 0, requestParamsCommand, 0 }
 
constexpr byte engineeringModeEnableComand = 0x62
 
constexpr byte engineeringModeEnableCommandData [4] { 2, 0, engineeringModeEnableComand, 0 }
 
constexpr byte engineeringModeDisableComand = 0x63
 
constexpr byte engineeringModeDisableCommandData [4] { 2, 0, engineeringModeDisableComand, 0 }
 
constexpr byte requestAuxControlSettingsCommand = 0xAE
 
constexpr byte requestAuxControlSettingsCommandData [4] { 2, 0, requestAuxControlSettingsCommand, 0 }
 
constexpr byte setAuxControlSettingsCommand = 0xAD
 
constexpr byte setAuxControlSettingCommandData [8] { 6, 0, setAuxControlSettingsCommand, 0, 0, 0x80, 0, 0 }
 
constexpr byte beginAutoConfigCommand = 0x0B
 
constexpr byte beginAutoConfigCommandData [6] { 4, 0, beginAutoConfigCommand, 0, 0x0A, 0 }
 
constexpr byte requestAutoConfigStatusCommand = 0x1B
 
constexpr byte requestAutoConfigStatusCommandData [4] { 2, 0, requestAutoConfigStatusCommand, 0 }
 
constexpr byte distanceGateSensitivityConfigCommand = 0x64
 
constexpr byte distanceGateSensitivityConfigCommandData [0x16]
 
constexpr byte maxGateCommand = 0x60
 
constexpr byte maxGateCommandData [0x16]
 

Variable Documentation

◆ beginAutoConfigCommand

byte LD2410Defs::beginAutoConfigCommand = 0x0B
constexpr

Definition at line 70 of file LD2410Defs.h.

◆ beginAutoConfigCommandData

byte LD2410Defs::beginAutoConfigCommandData[6] { 4, 0, beginAutoConfigCommand, 0, 0x0A, 0 }
constexpr

Definition at line 71 of file LD2410Defs.h.

◆ bluetoothSettingsCommand

byte LD2410Defs::bluetoothSettingsCommand = 0xA4
constexpr

Definition at line 46 of file LD2410Defs.h.

◆ bluetoothSettingsOffCommandData

byte LD2410Defs::bluetoothSettingsOffCommandData[6] { 4, 0, bluetoothSettingsCommand, 0, 0, 0 }
constexpr

Definition at line 48 of file LD2410Defs.h.

◆ bluetoothSettingsOnCommandData

byte LD2410Defs::bluetoothSettingsOnCommandData[6] { 4, 0, bluetoothSettingsCommand, 0, 1, 0 }
constexpr

Definition at line 47 of file LD2410Defs.h.

◆ configDisableCommand

byte LD2410Defs::configDisableCommand = 0xFE
constexpr

Definition at line 21 of file LD2410Defs.h.

◆ configDisableCommandData

byte LD2410Defs::configDisableCommandData[4] { 2, 0, configDisableCommand, 0 }
constexpr

Definition at line 22 of file LD2410Defs.h.

◆ configEnableCommand

byte LD2410Defs::configEnableCommand = 0xff
constexpr

Definition at line 18 of file LD2410Defs.h.

◆ configEnableCommandData

byte LD2410Defs::configEnableCommandData[6] { 4, 0, configEnableCommand, 0, 1, 0 }
constexpr

Definition at line 19 of file LD2410Defs.h.

◆ distanceGateSensitivityConfigCommand

byte LD2410Defs::distanceGateSensitivityConfigCommand = 0x64
constexpr

Definition at line 76 of file LD2410Defs.h.

◆ distanceGateSensitivityConfigCommandData

byte LD2410Defs::distanceGateSensitivityConfigCommandData[0x16]
constexpr
Initial value:
{
0x14, 0, distanceGateSensitivityConfigCommand, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0
}
constexpr byte distanceGateSensitivityConfigCommand
Definition LD2410Defs.h:76

Definition at line 77 of file LD2410Defs.h.

◆ engineeringModeDisableComand

byte LD2410Defs::engineeringModeDisableComand = 0x63
constexpr

Definition at line 61 of file LD2410Defs.h.

◆ engineeringModeDisableCommandData

byte LD2410Defs::engineeringModeDisableCommandData[4] { 2, 0, engineeringModeDisableComand, 0 }
constexpr

Definition at line 62 of file LD2410Defs.h.

◆ engineeringModeEnableComand

byte LD2410Defs::engineeringModeEnableComand = 0x62
constexpr

Definition at line 58 of file LD2410Defs.h.

◆ engineeringModeEnableCommandData

byte LD2410Defs::engineeringModeEnableCommandData[4] { 2, 0, engineeringModeEnableComand, 0 }
constexpr

Definition at line 59 of file LD2410Defs.h.

◆ getBluetoothPermissionsCommand

byte LD2410Defs::getBluetoothPermissionsCommand = 0xA8
constexpr

Definition at line 50 of file LD2410Defs.h.

◆ headConfig

byte LD2410Defs::headConfig[4] { 0xFD, 0xFC, 0xFB, 0xFA }
constexpr

Definition at line 15 of file LD2410Defs.h.

◆ headData

byte LD2410Defs::headData[4] { 0xF4, 0xF3, 0xF2, 0xF1 }
constexpr

Definition at line 13 of file LD2410Defs.h.

◆ LD2410_Buffer_Size

size_t LD2410Defs::LD2410_Buffer_Size = 0x40
constexpr

Definition at line 11 of file LD2410Defs.h.

◆ maxGateCommand

byte LD2410Defs::maxGateCommand = 0x60
constexpr

Definition at line 82 of file LD2410Defs.h.

◆ maxGateCommandData

byte LD2410Defs::maxGateCommandData[0x16]
constexpr
Initial value:
{
0x14, 0, maxGateCommand, 0, 0, 0, 8, 0, 0, 0,
1, 0, 8, 0, 0, 0, 2, 0, 5, 0, 0, 0
}
constexpr byte maxGateCommand
Definition LD2410Defs.h:82

Definition at line 83 of file LD2410Defs.h.

◆ rebootCommand

byte LD2410Defs::rebootCommand = 0xA3
constexpr

Definition at line 43 of file LD2410Defs.h.

◆ rebootCommandData

byte LD2410Defs::rebootCommandData[4] { 2, 0, rebootCommand, 0 }
constexpr

Definition at line 44 of file LD2410Defs.h.

◆ requestAutoConfigStatusCommand

byte LD2410Defs::requestAutoConfigStatusCommand = 0x1B
constexpr

Definition at line 73 of file LD2410Defs.h.

◆ requestAutoConfigStatusCommandData

byte LD2410Defs::requestAutoConfigStatusCommandData[4] { 2, 0, requestAutoConfigStatusCommand, 0 }
constexpr

Definition at line 74 of file LD2410Defs.h.

◆ requestAuxControlSettingsCommand

byte LD2410Defs::requestAuxControlSettingsCommand = 0xAE
constexpr

Definition at line 64 of file LD2410Defs.h.

◆ requestAuxControlSettingsCommandData

byte LD2410Defs::requestAuxControlSettingsCommandData[4] { 2, 0, requestAuxControlSettingsCommand, 0 }
constexpr

Definition at line 65 of file LD2410Defs.h.

◆ requestDistanceResolutionCommand

byte LD2410Defs::requestDistanceResolutionCommand = 0xAB
constexpr

Definition at line 30 of file LD2410Defs.h.

◆ requestDistanceResolutionCommandData

byte LD2410Defs::requestDistanceResolutionCommandData[4] { 2, 0, requestDistanceResolutionCommand, 0 }
constexpr

Definition at line 31 of file LD2410Defs.h.

◆ requestFirmwareCommand

byte LD2410Defs::requestFirmwareCommand = 0xA0
constexpr

Definition at line 27 of file LD2410Defs.h.

◆ requestFirmwareCommandData

byte LD2410Defs::requestFirmwareCommandData[4] { 2, 0, requestFirmwareCommand, 0 }
constexpr

Definition at line 28 of file LD2410Defs.h.

◆ requestMacAddressCommand

byte LD2410Defs::requestMacAddressCommand = 0xA5
constexpr

Definition at line 24 of file LD2410Defs.h.

◆ requestMacAddressCommandData

byte LD2410Defs::requestMacAddressCommandData[6] { 4, 0, requestMacAddressCommand, 0, 1, 0 }
constexpr

Definition at line 25 of file LD2410Defs.h.

◆ requestParamsCommand

byte LD2410Defs::requestParamsCommand = 0x61
constexpr

Definition at line 55 of file LD2410Defs.h.

◆ requestParamsCommandData

byte LD2410Defs::requestParamsCommandData[4] { 2, 0, requestParamsCommand, 0 }
constexpr

Definition at line 56 of file LD2410Defs.h.

◆ restoreFactorSettingsCommandData

byte LD2410Defs::restoreFactorSettingsCommandData[4] { 2, 0, restoreFactorySettingsAsyncCommand, 0 }
constexpr

Definition at line 41 of file LD2410Defs.h.

◆ restoreFactorySettingsAsyncCommand

byte LD2410Defs::restoreFactorySettingsAsyncCommand = 0xA2
constexpr

Definition at line 40 of file LD2410Defs.h.

◆ setAuxControlSettingCommandData

byte LD2410Defs::setAuxControlSettingCommandData[8] { 6, 0, setAuxControlSettingsCommand, 0, 0, 0x80, 0, 0 }
constexpr

Definition at line 68 of file LD2410Defs.h.

◆ setAuxControlSettingsCommand

byte LD2410Defs::setAuxControlSettingsCommand = 0xAD
constexpr

Definition at line 67 of file LD2410Defs.h.

◆ setBaudRateCommand

byte LD2410Defs::setBaudRateCommand = 0xA1
constexpr

Definition at line 37 of file LD2410Defs.h.

◆ setBaudRateCommandData

byte LD2410Defs::setBaudRateCommandData[6] { 4, 0, setBaudRateCommand, 0, 7, 0 }
constexpr

Definition at line 38 of file LD2410Defs.h.

◆ setBluetoothPasswordCommand

byte LD2410Defs::setBluetoothPasswordCommand = 0xA9
constexpr

Definition at line 52 of file LD2410Defs.h.

◆ setBluetoothPasswordCommandData

byte LD2410Defs::setBluetoothPasswordCommandData[10] { 8, 0, setBluetoothPasswordCommand, 0, 0x48, 0x69, 0x4C, 0x69, 0x6E, 0x6B }
constexpr

Definition at line 53 of file LD2410Defs.h.

◆ setDistanceResolution20cmCommandData

byte LD2410Defs::setDistanceResolution20cmCommandData[6] { 4, 0, setDistanceResolutionCommand, 0, 1, 0 }
constexpr

Definition at line 35 of file LD2410Defs.h.

◆ setDistanceResolution75cmCommandData

byte LD2410Defs::setDistanceResolution75cmCommandData[6] { 4, 0, setDistanceResolutionCommand, 0, 0, 0 }
constexpr

Definition at line 34 of file LD2410Defs.h.

◆ setDistanceResolutionCommand

byte LD2410Defs::setDistanceResolutionCommand = 0xAA
constexpr

Definition at line 33 of file LD2410Defs.h.

◆ tailConfig

byte LD2410Defs::tailConfig[4] { 4, 3, 2, 1 }
constexpr

Definition at line 16 of file LD2410Defs.h.

◆ tailData

byte LD2410Defs::tailData[4] { 0xF8, 0xF7, 0xF6, 0xF5 }
constexpr

Definition at line 14 of file LD2410Defs.h.