[−][src]Struct wio_terminal::Wifi
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]
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, ()>
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]
&mut self,
delay: &mut Delay,
ssid: S,
pw: P,
security: Security
) -> Result<IPInfo, Err<()>>
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]
&mut self,
rpc: RPC
) -> Result<RPC::ReturnValue, Err<RPC::Error>>
Issues an RPC, blocking till a response is recieved.
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,