Group x430_config¶
Build-time configuration: Kconfig symbols or plain compiler definitions. More...
Macros¶
| Type | Name |
|---|---|
| define | X430_BAUD_RATE_CODE_MAX (7U)Highest Baud Rate (address 8) code accepted by a write. |
| define | X430_BAUD_RATE_CODE_MAX_U ((uint32\_t)([**X430\_BAUD\_RATE\_CODE\_MAX**](group__x430__config.md#define-x430_baud_rate_code_max))) |
| define | X430_FEATURE_BACKUP 1Control Table BACKUP instruction, Backup Ready and Startup RAM Restore. |
| define | X430_FEATURE_BULK 1BULK_READ and BULK_WRITE instructions. |
| define | X430_FEATURE_FAST_READ 1FAST_SYNC_READ and FAST_BULK_READ instructions (used by ROS 2 by default). |
| define | X430_FEATURE_SIMULATOR 1Built-in simulator backend (x430_sim.h). |
| define | X430_FIRMWARE_VERSION (52U)Firmware Version (address 6) used when the device configuration gives 0. |
| define | X430_MAX_DEVICES (4U)Devices (DYNAMIXEL IDs) one bus can host. |
| define | X430_MAX_DEVICES_U ((uint32\_t)([**X430\_MAX\_DEVICES**](group__x430__config.md#define-x430_max_devices))) |
| define | X430_MODEL_NUMBER (X430\_MODEL\_NUMBER\_DEFAULT)Model Number reported by PING and address 0. |
| define | X430_REG_WRITE_SIZE (32U)Largest data block a REG_WRITE can register, in bytes. |
| define | X430_REG_WRITE_SIZE_U ((uint32\_t)([**X430\_REG\_WRITE\_SIZE**](group__x430__config.md#define-x430_reg_write_size))) |
| define | X430_TURN_TIMEOUT_MS (100U)Longest wait, in milliseconds, for the status packet of the device before a hosted device in a SYNC_READ or BULK_READ (default 100). |
| define | X430_TURN_TIMEOUT_MS_U ((uint32\_t)([**X430\_TURN\_TIMEOUT\_MS**](group__x430__config.md#define-x430_turn_timeout_ms))) |
Detailed Description¶
The values come from three places, highest priority first:
* a compiler definition of the X430_* macro itself (for example -DX430_MAX_DEVICES=8U);
* the Kconfig header x430_autoconf.h (CONFIG_X430_* symbols), included when the build defines X430_HAS_AUTOCONF;
* the defaults below.
The emulated model is not configured here: CMake generates its Control Table (x430_model_table.c) and x430_model_info.h for the model selected with Kconfig or with the X430_MODEL cache variable.
Macro Definition Documentation¶
define X430_BAUD_RATE_CODE_MAX¶
Highest Baud Rate (address 8) code accepted by a write.
The X430 table defines 0..7. A larger value lets an application use its own codes; the application validates them in the write hook.
define X430_BAUD_RATE_CODE_MAX_U¶
define X430_FEATURE_BACKUP¶
Control Table BACKUP instruction, Backup Ready and Startup RAM Restore.
define X430_FEATURE_BULK¶
BULK_READ and BULK_WRITE instructions.
define X430_FEATURE_FAST_READ¶
FAST_SYNC_READ and FAST_BULK_READ instructions (used by ROS 2 by default).
define X430_FEATURE_SIMULATOR¶
Built-in simulator backend (x430_sim.h).
define X430_FIRMWARE_VERSION¶
Firmware Version (address 6) used when the device configuration gives 0.
define X430_MAX_DEVICES¶
Devices (DYNAMIXEL IDs) one bus can host.
define X430_MAX_DEVICES_U¶
define X430_MODEL_NUMBER¶
Model Number reported by PING and address 0.
CONFIG_X430_MODEL_NUMBER_OVERRIDE (non-zero) replaces the number of the ROBOTIS documentation, for hosts that only know another number.
define X430_REG_WRITE_SIZE¶
Largest data block a REG_WRITE can register, in bytes.
define X430_REG_WRITE_SIZE_U¶
define X430_TURN_TIMEOUT_MS¶
Longest wait, in milliseconds, for the status packet of the device before a hosted device in a SYNC_READ or BULK_READ (default 100).
On a bus shared with devices of other buses (other MCUs, real servos), a hosted device answers a SYNC_READ or BULK_READ only after it has received the status packet of the ID listed just before it, like an X series actuator. When that status does not arrive within this time after the last progress of the read, the remaining hosted devices of the read stay silent. A new instruction packet ends the wait as well. The time comes from the millisecond clock of x430_port; without a clock the wait ends only with the next instruction packet. Keep it longer than one status packet at the lowest baud rate in use, plus the Return Delay Time.