Steve Sims / X_NUCLEO_IDW01M1_AP

Dependents:   X_NUCLEO_IDW01M1_AP_Test

Fork of X_NUCLEO_IDW01M1 by ST

Embed: (wiki syntax)

« Back to documentation index

wifi_driver.c File Reference

wifi_driver.c File Reference

Enable Wi-Fi functionality using AT cmd set. More...

Go to the source code of this file.

Functions

void Wifi_ticker (void)
 Wi-Fi System Tick IRQ handler retrieves byte(s) from the ring buffer.
void Wifi_scheduler (void)
 Wi-Fi Scheduler handler Fetches events from event buffer/makes callbacks to User.
void Rx_irq_handler (void)
 UART RX IRQ handler stores a byte to the ring buffer.
void wifi_reset (void)
 wifi_reset Reset WiFi module using PC12 gpio pin
void PowerUp_WiFi_Module (void)
 PowerUp_WiFi_Module Power up Wi-Fi module,SET GPIO PA0 pin.
void Receive_Data (void)
 Receive_Data Receive data from UART port.
WiFi_Status_t USART_Transmit_AT_Cmd (uint16_t size)
 USART_Transmit_AT_Cmd send AT cmd on UART port of wifi module.
int wifi_socket_server_write (uint16_t DataLength, char *pData)
 wifi_socket_server_write Write to a Server socket

Detailed Description

Enable Wi-Fi functionality using AT cmd set.

Author:
Central LAB
Version:
V2.0.0
Date:
01-March-2016
Attention:

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file wifi_driver.c.


Function Documentation

void PowerUp_WiFi_Module ( void   )

PowerUp_WiFi_Module Power up Wi-Fi module,SET GPIO PA0 pin.

Parameters:
None
Return values:
None

Definition at line 142 of file wifi_driver.c.

void Receive_Data ( void   )

Receive_Data Receive data from UART port.

Parameters:
uint8_tnumber of bytes to be received
Return values:
None

Definition at line 155 of file wifi_driver.c.

void Rx_irq_handler ( void   )

UART RX IRQ handler stores a byte to the ring buffer.

Parameters:
None
Return values:
None

Definition at line 76 of file wifi_driver.c.

WiFi_Status_t USART_Transmit_AT_Cmd ( uint16_t  size )

USART_Transmit_AT_Cmd send AT cmd on UART port of wifi module.

Parameters:
sizesize of the AT command
Return values:
WiFi_Status_t: status of AT cmd

Definition at line 167 of file wifi_driver.c.

void wifi_reset ( void   )

wifi_reset Reset WiFi module using PC12 gpio pin

Parameters:
None
Return values:
None

Definition at line 113 of file wifi_driver.c.

void Wifi_scheduler ( void   )

Wi-Fi Scheduler handler Fetches events from event buffer/makes callbacks to User.

Parameters:
None
Return values:
None

Definition at line 65 of file wifi_driver.c.

int wifi_socket_server_write ( uint16_t  DataLength,
char *  pData 
)

wifi_socket_server_write Write to a Server socket

Parameters:
None
Return values:
WiFi_Status_t: return status of server socket request

Definition at line 218 of file wifi_driver.c.

void Wifi_ticker ( void   )

Wi-Fi System Tick IRQ handler retrieves byte(s) from the ring buffer.

Parameters:
None
Return values:
None

Definition at line 54 of file wifi_driver.c.