Go to the documentation of this file.
20 #ifndef DYNAMIXEL_WRITER_H
21 #define DYNAMIXEL_WRITER_H
uint8_t * buffer
data buffer
void dynamixel_writer_init(dynamixel_writer_t *writer, uint8_t *buffer, size_t limit)
Initialize the Dynamixel packet writer.
Dynamixel protocol definitions.
size_t dynamixel_writer_get_size(const dynamixel_writer_t *writer)
Get the data buffer's size to send.
void dynamixel_writer_read_make(dynamixel_writer_t *writer, uint8_t id, uint16_t reg, size_t size)
Build a READ packet.
const uint8_t * dynamixel_writer_get_data(const dynamixel_writer_t *writer)
Get the data buffer to send.
size_t limit
data buffer's size
void dynamixel_writer_write_make(dynamixel_writer_t *writer, uint8_t id, uint16_t reg, const uint8_t *buffer, size_t size)
Build a WRITE packet.
Dynamixel packet writer struct.
void dynamixel_writer_ping_make(dynamixel_writer_t *writer, uint8_t id)
Build a PING packet.