API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Functions

int TSMART_WIFI_Init (void)
 This functions initializes the hardware configuration of the selected SPI bus and the associated OS mechanisms. More...
 
void TSMART_WIFI_WlanInterruptEnable (void)
 Enables the SPI IRQ. More...
 
void TSMART_WIFI_WlanInterruptDisable (void)
 Disables the SPI IRQ. More...
 
void TSMART_WIFI_WriteWlanPowerEnable (unsigned char val)
 Power enabale manager. More...
 
long TSMART_WIFI_ReadWlanInterruptPin (void)
 Reads the state of the SPI IRQ pin. More...
 

Detailed Description

Function Documentation

int TSMART_WIFI_Init ( void  )

This functions initializes the hardware configuration of the selected SPI bus and the associated OS mechanisms.

Note
This Device use tsmart_spi2 and its associated pins
Returns
  • TSMART_PASS - OK
  • TSMART_FAIL - Init software resources failure.
Examples:
mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, wifi_tcp_client.c, wifi_tcp_client_server.c, and wifi_tcp_server.c.
long TSMART_WIFI_ReadWlanInterruptPin ( void  )

Reads the state of the SPI IRQ pin.

Returns
  • 0 logic value
  • 1 logic value
Examples:
mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, wifi_tcp_client.c, wifi_tcp_client_server.c, and wifi_tcp_server.c.
void TSMART_WIFI_WlanInterruptDisable ( void  )

Disables the SPI IRQ.

The interrupt will be completely disabled after this function is executed.

Examples:
mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, wifi_tcp_client.c, wifi_tcp_client_server.c, and wifi_tcp_server.c.
void TSMART_WIFI_WlanInterruptEnable ( void  )

Enables the SPI IRQ.

The interrupt will be enabled after this function is executed.

Examples:
mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, wifi_tcp_client.c, wifi_tcp_client_server.c, and wifi_tcp_server.c.
void TSMART_WIFI_WriteWlanPowerEnable ( unsigned char  val)

Power enabale manager.

Parameters
valValue to set:1(enable) or 0(disable)
Examples:
mqtt_wifi_publisher.c, mqtt_wifi_subscriber.c, wifi_tcp_client.c, wifi_tcp_client_server.c, and wifi_tcp_server.c.