Crate jvs_packets

source ·
Expand description

A packet structures for JAMMA Video Standart protocols.

This crate provides a wrapper around [u8] array with getter and setter methods for easily changing/writing/reading data.

§Example

use jvs_packets::{jvs::{RequestPacket}, ReadPacket, Packet};
 
    // This is only for example. You can use any structure, that implements std::io::Read. 
    let mut reader = std::io::Cursor::new([0xE0, 0xFF, 0x03, 0x01, 0x02, 0x05]);
    let mut req_packet: RequestPacket = RequestPacket::new();
    reader.read_packet(&mut req_packet);
     
    assert_eq!(req_packet.size(), 0x03);
    Ok(())

Modules§

  • A packet structures used for communication with JAMMA Video Standart.
  • A packet structures for slightly modified JAMMA Video Standart protocol, that mostly used for NFS readers.

Macros§

Enums§

  • JVS response report codes.

Constants§

Traits§