20#ifndef DYNAMIXEL_WRITER_H
21#define DYNAMIXEL_WRITER_H
Dynamixel protocol definitions.
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 dynamixel_writer_get_size(const dynamixel_writer_t *writer)
Get the data buffer's size to send.
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.
void dynamixel_writer_ping_make(dynamixel_writer_t *writer, uint8_t id)
Build a PING packet.
void dynamixel_writer_init(dynamixel_writer_t *writer, uint8_t *buffer, size_t limit)
Initialize the Dynamixel packet writer.
Dynamixel packet writer struct.
size_t limit
data buffer's size
uint8_t * buffer
data buffer