Struct drs_0x01::MessageBuilderPositionIJOG [−][src]
pub struct MessageBuilderPositionIJOG { /* fields omitted */ }
This is a specialized version of the MessageBuilder
which contains an ID and a position
request.
Methods
impl MessageBuilderPositionIJOG
[src]
impl MessageBuilderPositionIJOG
pub fn s_jog(
&mut self,
mode: JogMode,
color: JogColor,
playtime: u8,
id: u8
) -> Result<(), MessageBuilderError>
[src]
pub fn s_jog(
&mut self,
mode: JogMode,
color: JogColor,
playtime: u8,
id: u8
) -> Result<(), MessageBuilderError>
Append a new SJOG command to this message.
Errors
Return MessageBuilderError::MaximumDataReached if there is already 10 sjog command in this message.
Invalid Values
The maximum id
value is 0xFE
.
pub fn build(self) -> ArrayVec<[u8; 256]>
[src]
pub fn build(self) -> ArrayVec<[u8; 256]>
Build the final message to be sent to the servomotor through a serial connection.
Auto Trait Implementations
impl Send for MessageBuilderPositionIJOG
impl Send for MessageBuilderPositionIJOG
impl Sync for MessageBuilderPositionIJOG
impl Sync for MessageBuilderPositionIJOG