forked from M-Labs/artiq-zynq
upconn fw: add big endian doc
This commit is contained in:
parent
fa674e32f5
commit
7dbeefd0a4
|
@ -75,6 +75,7 @@ pub enum Packet {
|
||||||
impl Packet {
|
impl Packet {
|
||||||
pub fn write_to<W>(&self, writer: &mut W) -> Result<(), Error>
|
pub fn write_to<W>(&self, writer: &mut W) -> Result<(), Error>
|
||||||
where W: Write {
|
where W: Write {
|
||||||
|
// CoaXpress use big endian
|
||||||
match self {
|
match self {
|
||||||
Packet::ControlU32Reg(cmd) => match cmd {
|
Packet::ControlU32Reg(cmd) => match cmd {
|
||||||
Command::Read { addr } => {
|
Command::Read { addr } => {
|
||||||
|
|
Loading…
Reference in New Issue