pub fn write_u16(&mut self, motor_id: u8, address: u16, value: u16) -> Result<(), TransferError> {
		let response = self.transfer_single(motor_id, instruction_id::WRITE, 2 + 2, |buffer| {
			write_u16_le(&mut buffer[0..], address);
			write_u16_le(&mut buffer[2..], value);
		})?;
		crate::error::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		Ok(())
	}
/// Write an 16 bit value to a specific motor.
Write an 16 bit value to a specific motor.
Write an 16 bit value to a specific motor .
pub fn write_u16(&mut self, motor_id: u8, address: u16, value: u16) -> Result<(), TransferError> {
		let response = self.transfer_single(motor_id, instruction_id::WRITE, 2 + 2, |buffer| {
			write_u16_le(&mut buffer[0..], address);
			write_u16_le(&mut buffer[2..], value);
		})?;
		crate::error::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		Ok(())
	}
pub fn write_u16 ( & mut self , motor_id : u8 , address : u16 , value : u16 ) -> Result < ( ) , TransferError > { let response = self . transfer_single ( motor_id , instruction_id :: WRITE , 2 + 2 , | buffer | { write_u16_le ( & mut buffer [ 0 .. ] , address ) ; write_u16_le ( & mut buffer [ 2 .. ] , value ) ; } ) ? ; crate :: error :: InvalidParameterCount :: check ( response . parameters ( ) . len ( ) , 0 ) . map_err ( crate :: ReadError :: from ) ? ; Ok ( ( ) ) }
Write an 16 bit value to a specific motor.
Write an 16 bit value to a specific motor .
&mut self
motor_id
u8
address
u16
value
u16
&mut self
motor_id
u8
address
u16
value
u16