#[repr(C)]
pub struct atca_iface { pub mType: ATCAIfaceType, pub mIfaceCFG: *mut ATCAIfaceCfg, pub atinit: Option<unsafe extern "C" fn(hal: *mut c_void, arg1: *mut ATCAIfaceCfg) -> ATCA_STATUS>, pub atpostinit: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>, pub atsend: Option<unsafe extern "C" fn(hal: ATCAIface, txdata: *mut u8, txlength: c_int) -> ATCA_STATUS>, pub atreceive: Option<unsafe extern "C" fn(hal: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS>, pub atwake: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>, pub atidle: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>, pub atsleep: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>, pub hal_data: *mut c_void, }
Expand description

\brief atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface methods

Fields

mType: ATCAIfaceTypemIfaceCFG: *mut ATCAIfaceCfgatinit: Option<unsafe extern "C" fn(hal: *mut c_void, arg1: *mut ATCAIfaceCfg) -> ATCA_STATUS>atpostinit: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>atsend: Option<unsafe extern "C" fn(hal: ATCAIface, txdata: *mut u8, txlength: c_int) -> ATCA_STATUS>atreceive: Option<unsafe extern "C" fn(hal: ATCAIface, rxdata: *mut u8, rxlength: *mut u16) -> ATCA_STATUS>atwake: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>atidle: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>atsleep: Option<unsafe extern "C" fn(hal: ATCAIface) -> ATCA_STATUS>hal_data: *mut c_void

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.