[][src]Struct wio_terminal::Wifi

pub struct Wifi { /* fields omitted */ }

eRPC-based protocol to the RTL8720 chip

Implementations

impl Wifi[src]

pub fn init(
    pins: WifiPins,
    sercom0: SERCOM0,
    clocks: &mut GenericClockController,
    mclk: &mut MCLK,
    port: &mut Port,
    delay: &mut Delay,
    rx_buff: &'static BBBuffer<U512>,
    tx_buff: &'static BBBuffer<U128>
) -> Result<Wifi, ()>
[src]

pub fn enable(&mut self, _cs: &CriticalSection, nvic: &mut NVIC)[src]

Turns on internal interrupts. Call this after you have finished initializing the rest of your peripherals but before you start issuing RPCs against the wifi chip.

pub fn connect_to_ap<S: Into<String<U64>>, P: Into<String<U64>>>(
    &mut self,
    delay: &mut Delay,
    ssid: S,
    pw: P,
    security: Security
) -> Result<IPInfo, Err<()>>
[src]

Convenience function to connection an access point with the given network name and security parameters, and request an IP via DHCP.

pub fn _handle_rx(&mut self)[src]

Called from ISR: Handles the signal that the UART has recieved a byte that needs to be read.

pub fn _handle_data_empty(&mut self)[src]

Called from ISR: Handles the signal that the outgoing UART buffer has room for the next byte.

pub fn blocking_rpc<'a, RPC: RPC>(
    &mut self,
    rpc: RPC
) -> Result<RPC::ReturnValue, Err<RPC::Error>>
[src]

Issues an RPC, blocking till a response is recieved.

Auto Trait Implementations

impl Send for Wifi[src]

impl !Sync for Wifi[src]

impl Unpin for Wifi[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.