![]() |
MercurySDK
Software development kit for Mercury digital servos
|
The class for writing multiple Dynamixel data from same address with same length at once. More...
#include <group_sync_write.h>
Public Member Functions | |
GroupSyncWrite (PortHandler *port, PacketHandler *ph, uint16_t start_address, uint16_t data_length) | |
The function that Initializes instance for Sync Write. More... | |
~GroupSyncWrite () | |
The function that calls clearParam function to clear the parameter list for Sync Write. More... | |
bool | addParam (uint8_t id, uint8_t *data) |
The function that adds id, start_address, data_length to the Sync Write list. More... | |
void | removeParam (uint8_t id) |
The function that removes id from the Sync Write list. More... | |
bool | changeParam (uint8_t id, uint8_t *data) |
The function that changes the data for write in id -> start_address -> data_length to the Sync Write list. More... | |
void | clearParam () |
The function that clears the Sync Write list. More... | |
int | txPacket () |
The function that transmits the Sync Write instruction packet which might be constructed by GroupSyncWrite::addParam function. More... | |
![]() | |
GroupHandler (PortHandler *port, PacketHandler *ph) | |
PortHandler * | getPortHandler () |
PacketHandler * | getPacketHandler () |
Additional Inherited Members | |
![]() | |
PortHandler * | port_ |
PacketHandler * | ph_ |
std::vector< uint8_t > | id_list_ |
std::map< uint8_t, uint8_t * > | data_list_ |
bool | is_param_changed_ |
uint8_t * | param_ |
The class for writing multiple Dynamixel data from same address with same length at once.
Definition at line 36 of file group_sync_write.h.
GroupSyncWrite::GroupSyncWrite | ( | PortHandler * | port, |
PacketHandler * | ph, | ||
uint16_t | start_address, | ||
uint16_t | data_length | ||
) |
The function that Initializes instance for Sync Write.
port | PortHandler instance |
ph | PacketHandler instance |
start_address | Address of the data for write |
data_length | Length of the data for write |
Definition at line 34 of file group_sync_write.cpp.
|
inline |
The function that calls clearParam function to clear the parameter list for Sync Write.
Definition at line 57 of file group_sync_write.h.
bool GroupSyncWrite::addParam | ( | uint8_t | id, |
uint8_t * | data | ||
) |
The function that adds id, start_address, data_length to the Sync Write list.
id | Dynamixel ID |
data | Data for write |
Definition at line 65 of file group_sync_write.cpp.
bool GroupSyncWrite::changeParam | ( | uint8_t | id, |
uint8_t * | data | ||
) |
The function that changes the data for write in id -> start_address -> data_length to the Sync Write list.
id | Dynamixel ID |
data | for replacement |
Definition at line 92 of file group_sync_write.cpp.
void GroupSyncWrite::clearParam | ( | ) |
The function that clears the Sync Write list.
Definition at line 107 of file group_sync_write.cpp.
void GroupSyncWrite::removeParam | ( | uint8_t | id | ) |
The function that removes id from the Sync Write list.
id | Dynamixel ID |
Definition at line 79 of file group_sync_write.cpp.
int GroupSyncWrite::txPacket | ( | ) |
The function that transmits the Sync Write instruction packet which might be constructed by GroupSyncWrite::addParam function.
Definition at line 122 of file group_sync_write.cpp.