pub struct GetVersions {
pub key: [u8; 5],
}
Expand description
§15/1d Request
- byte key[5] Key. Must be {1,3,5,7,11}.
Request the ROM and firmware versions from the RCX. If key is not valid, no reply is sent.
§e2/ea Reply
- short rom[2] ROM version number.
- short firmware[2] Firmware version number.
Reply contains the ROM and firmware version numbers. Each version number is composed of two big endian shorts; the first is the major version number and the second is the minor version number.
The ROM always has major and minor version numbers 3 and 1. The firmware shipped with the Robotics Invention System has major and minor version numbers 3 and 9. When no firmware is installed, both firmware version numbers are 0.
Fields§
§key: [u8; 5]
Trait Implementations§
Source§impl Clone for GetVersions
impl Clone for GetVersions
Source§fn clone(&self) -> GetVersions
fn clone(&self) -> GetVersions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetVersions
impl Debug for GetVersions
Source§impl Display for GetVersions
impl Display for GetVersions
Source§impl Opcode for GetVersions
impl Opcode for GetVersions
Source§impl PartialEq for GetVersions
impl PartialEq for GetVersions
impl Eq for GetVersions
impl StructuralPartialEq for GetVersions
Auto Trait Implementations§
impl Freeze for GetVersions
impl RefUnwindSafe for GetVersions
impl Send for GetVersions
impl Sync for GetVersions
impl Unpin for GetVersions
impl UnwindSafe for GetVersions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more