mirror of
https://github.com/italicsjenga/usbd-midi.git
synced 2024-12-23 20:31:30 +11:00
Makes the usbmidi packet public
This can be open as any modification will still leave the struct in a good state :
This commit is contained in:
parent
d151a05787
commit
fcb988815a
|
@ -8,8 +8,8 @@ use crate::data::midi::message::raw::{Payload,Raw};
|
||||||
/// Currently supported is sending the specified normal midi
|
/// Currently supported is sending the specified normal midi
|
||||||
/// message over the supplied cable number
|
/// message over the supplied cable number
|
||||||
pub struct UsbMidiEventPacket {
|
pub struct UsbMidiEventPacket {
|
||||||
cable_number : CableNumber,
|
pub cable_number : CableNumber,
|
||||||
message: Message
|
pub message: Message
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<UsbMidiEventPacket> for [u8;4] {
|
impl From<UsbMidiEventPacket> for [u8;4] {
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
mod util;
|
mod util;
|
||||||
pub mod data;
|
pub mod data;
|
||||||
pub mod midi_device;
|
pub mod midi_device;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue