Added Packet struct and beginnings of packet reading

This commit is contained in:
Jonah Dahlquist 2019-09-10 09:15:48 -05:00 committed by Jonah Dahlquist
commit d0f5792028
4 changed files with 193 additions and 0 deletions

View file

@ -54,4 +54,13 @@ pub mod socketn {
}
pub const SOURCE_PORT: u16 = 0x04;
pub const INTERRUPT_MASK: u16 = 0x2C;
pub mod interrupt_mask {
pub const RECEIVE: u8 = 0b100;
}
pub const RECEIVED_SIZE: u16 = 0x26;
pub const RX_DATA_POINTER: u16 = 0x28;
}