pub fn reg_write_u8(&mut self, motor_id: u8, address: u16, value: u8) -> Result<(), TransferError> {
		let response = self.transfer_single(motor_id, instruction_id::REG_WRITE, 2 + 1, |buffer| {
			write_u16_le(&mut buffer[0..], address);
			buffer[2] = value;
		})?;
		crate::error::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		Ok(())
	}
/// Register a write command for a 8 bit value to a specific motor.
///
/// Only one write command can be registered per motor.
///
/// You can have all connected motors execute their registered write using [`Self::broadcast_action`],
/// or a single motor using [`Self::action`].
Register a write command for a 8 bit value to a specific motor.
Only one write command can be registered per motor.

You can have all connected motors execute their registered write using [`Self::broadcast_action`],
or a single motor using [`Self::action`].
Register a write command for a 8 bit value to a specific motor . Only one write command can be registered per motor . You can have all connected motors execute their registered write using [ ` Self :: broadcast_action ` ] or a single motor using [ ` Self :: action ` ] .
pub fn reg_write_u8(&mut self, motor_id: u8, address: u16, value: u8) -> Result<(), TransferError> {
		let response = self.transfer_single(motor_id, instruction_id::REG_WRITE, 2 + 1, |buffer| {
			write_u16_le(&mut buffer[0..], address);
			buffer[2] = value;
		})?;
		crate::error::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		Ok(())
	}
pub fn reg_write_u8 ( & mut self , motor_id : u8 , address : u16 , value : u8 ) -> Result < ( ) , TransferError > { let response = self . transfer_single ( motor_id , instruction_id :: REG_WRITE , 2 + 1 , | buffer | { write_u16_le ( & mut buffer [ 0 .. ] , address ) ; buffer [ 2 ] = value ; } ) ? ; crate :: error :: InvalidParameterCount :: check ( response . parameters ( ) . len ( ) , 0 ) . map_err ( crate :: ReadError :: from ) ? ; Ok ( ( ) ) }
Register a write command for a 8 bit value to a specific motor.
Register a write command for a 8 bit value to a specific motor .
&mut self
motor_id
u8
address
u16
value
u8
&mut self
motor_id
u8
address
u16
value
u8