Type Alias csp_iface_t

Source
pub type csp_iface_t = csp_iface_s;
Expand description

Forward declaration of CSP interface, see #csp_iface_s for details.

Aliased Type§

#[repr(C)]
pub struct csp_iface_t {
Show 18 fields pub addr: u16, pub netmask: u16, pub name: *const i8, pub interface_data: *mut c_void, pub driver_data: *mut c_void, pub nexthop: Option<unsafe extern "C" fn(*mut csp_iface_s, u16, *mut csp_packet_s, i32) -> i32>, pub is_default: u8, pub tx: u32, pub rx: u32, pub tx_error: u32, pub rx_error: u32, pub drop: u32, pub autherr: u32, pub frame: u32, pub txbytes: u32, pub rxbytes: u32, pub irq: u32, pub next: *mut csp_iface_s,
}

Fields§

§addr: u16

< Host address on this subnet

§netmask: u16

< Subnet mask

§name: *const i8

< Name, max compare length is #CSP_IFLIST_NAME_MAX

§interface_data: *mut c_void

< Interface data, only known/used by the interface layer, e.g. state information.

§driver_data: *mut c_void

< Driver data, only known/used by the driver layer, e.g. device/channel references.

§nexthop: Option<unsafe extern "C" fn(*mut csp_iface_s, u16, *mut csp_packet_s, i32) -> i32>

< Next hop (Tx) function

§is_default: u8

< Set default IF flag (CSP supports multiple defaults)

§tx: u32

< Successfully transmitted packets

§rx: u32

< Successfully received packets

§tx_error: u32

< Transmit errors (packets)

§rx_error: u32

< Receive errors, e.g. too large message

§drop: u32

< Dropped packets

§autherr: u32

< Authentication errors (packets)

§frame: u32

< Frame format errors (packets)

§txbytes: u32

< Transmitted bytes

§rxbytes: u32

< Received bytes

§irq: u32

< Interrupts

§next: *mut csp_iface_s