[][src]Struct lpc176x_5x::emac::tsv0::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

pub fn bits(&self) -> u32[src]

Value of the register as raw bits

pub fn crcerr(&self) -> CRCERRR[src]

Bit 0 - CRC error. The attached CRC in the packet did not match the internally generated CRC.

pub fn lce(&self) -> LCER[src]

Bit 1 - Length check error. Indicates the frame length field does not match the actual number of data items and is not a type field.

pub fn lor(&self) -> LORR[src]

Bit 2 - Length out of range. Indicates that frame type/length field was larger than 1500 bytes. The EMAC doesn't distinguish the frame type and frame length, so, e.g. when the IP(0x8000) or ARP(0x0806) packets are received, it compares the frame type with the max length and gives the "Length out of range" error. In fact, this bit is not an error indication, but simply a statement by the chip regarding the status of the received frame.

pub fn done(&self) -> DONER[src]

Bit 3 - Transmission of packet was completed.

pub fn multicast(&self) -> MULTICASTR[src]

Bit 4 - Packet's destination was a multicast address.

pub fn broadcast(&self) -> BROADCASTR[src]

Bit 5 - Packet's destination was a broadcast address.

pub fn packetdefer(&self) -> PACKETDEFERR[src]

Bit 6 - Packet was deferred for at least one attempt, but less than an excessive defer.

pub fn exdf(&self) -> EXDFR[src]

Bit 7 - Excessive Defer. Packet was deferred in excess of 6071 nibble times in 100 Mbps or 24287 bit times in 10 Mbps mode.

pub fn excol(&self) -> EXCOLR[src]

Bit 8 - Excessive Collision. Packet was aborted due to exceeding of maximum allowed number of collisions.

pub fn lcol(&self) -> LCOLR[src]

Bit 9 - Late Collision. Collision occurred beyond collision window, 512 bit times.

pub fn giant(&self) -> GIANTR[src]

Bit 10 - Byte count in frame was greater than can be represented in the transmit byte count field in TSV1.

pub fn underrun(&self) -> UNDERRUNR[src]

Bit 11 - Host side caused buffer underrun.

pub fn totalbytes(&self) -> TOTALBYTESR[src]

Bits 12:27 - The total number of bytes transferred including collided attempts.

pub fn controlframe(&self) -> CONTROLFRAMER[src]

Bit 28 - The frame was a control frame.

pub fn pause(&self) -> PAUSER[src]

Bit 29 - The frame was a control frame with a valid PAUSE opcode.

pub fn backpressure(&self) -> BACKPRESSURER[src]

Bit 30 - Carrier-sense method backpressure was previously applied.

pub fn vlan(&self) -> VLANR[src]

Bit 31 - Frame's length/type field contained 0x8100 which is the VLAN protocol identifier.

Auto Trait Implementations

impl Send for R

impl Sync for R

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]