CYW4343x

Struct CYW4343x 

Source
pub struct CYW4343x<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> { /* private fields */ }
Expand description

CYW4343x device driver

Implementations§

Source§

impl<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> CYW4343x<'a, P, A, B>

Source

pub fn new( alarm: &'a A, bus: &'a B, pwr: &'a P, clm: &'static [u8], buffer: &'static mut [u8; 1600], ) -> Self

Trait Implementations§

Source§

impl<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> AlarmClient for CYW4343x<'a, P, A, B>

Source§

fn alarm(&self)

Callback indicating the alarm time has been reached. The alarm MUST be disabled when this is called. If a new alarm is needed, the client can call Alarm::set_alarm.
Source§

impl<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> CYW4343xBusClient for CYW4343x<'a, P, A, B>

Source§

fn init_done(&self, rval: Result<(), ErrorCode>)

Initialisation process is done
Source§

fn packet_available(&self, len: usize)

An F2 (WLAN) packet is available
Source§

fn write_bytes_done( &self, buffer: SubSliceMut<'static, u8>, rval: Result<(), ErrorCode>, )

WLAN write done
Source§

fn read_bytes_done( &self, buffer: SubSliceMut<'static, u8>, rval: Result<(), ErrorCode>, )

WLAN read done
Source§

impl<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> Device<'a> for CYW4343x<'a, P, A, B>

Source§

fn set_client(&self, client: &'a dyn Client)

Set client
Source§

fn init(&self) -> Result<(), ErrorCode>

Initialize the device
Source§

fn mac(&self) -> Result<[u8; 6], ErrorCode>

Return the device’s MAC address
Source§

fn join( &self, ssid: Ssid, security: Option<(Security, Passphrase)>, ) -> Result<(), ErrorCode>

Join a network, either open or protected Read more
Source§

fn leave(&self) -> Result<(), ErrorCode>

Disconnect from the current network
Source§

fn scan(&self) -> Result<(), ErrorCode>

Start scanning the available WiFi networks
Source§

fn stop_scan(&self) -> Result<(), ErrorCode>

Try to force the device to stop scanning
Source§

fn access_point( &self, ssid: Ssid, security: Option<(Security, Passphrase)>, channel: u8, ) -> Result<(), ErrorCode>

Configure the device as access point (AP) Read more
Source§

fn station(&self) -> Result<(), ErrorCode>

Configure the device as station (STA)
Source§

impl<'a, P: Pin, A: Alarm<'a>, B: CYW4343xBus<'a>> EthernetAdapterDatapath<'a> for CYW4343x<'a, P, A, B>

Source§

fn set_client(&self, client: &'a dyn EthernetAdapterDatapathClient)

Set the Ethernet adapter client for this peripheral.
Source§

fn enable_receive(&self)

Enable reception of Ethernet frames. Read more
Source§

fn disable_receive(&self)

Disable reception of Ethernet frames. Read more
Source§

fn transmit_frame( &self, frame_buffer: &'static mut [u8], len: u16, transmission_identifier: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>

Transmit an Ethernet frame / enqueue a frame for transmission. Read more

Auto Trait Implementations§

§

impl<'a, P, A, B> !Freeze for CYW4343x<'a, P, A, B>

§

impl<'a, P, A, B> !RefUnwindSafe for CYW4343x<'a, P, A, B>

§

impl<'a, P, A, B> !Send for CYW4343x<'a, P, A, B>

§

impl<'a, P, A, B> !Sync for CYW4343x<'a, P, A, B>

§

impl<'a, P, A, B> Unpin for CYW4343x<'a, P, A, B>

§

impl<'a, P, A, B> !UnwindSafe for CYW4343x<'a, P, A, B>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.