wifi9  2.0.0.0
Functions
Public function

Functions

void wifi9_cfg_setup (wifi9_cfg_t *cfg)
 Config Object Initialization function. More...
 
err_t wifi9_init (wifi9_t *ctx, wifi9_cfg_t *cfg)
 Initialization function. More...
 
void wifi9_reset_device (wifi9_t *ctx)
 Module reset. More...
 
void wifi9_set_rst_pin (wifi9_t *ctx, uint8_t state)
 Set RST pin state. More...
 
void wifi9_set_rts_pin (wifi9_t *ctx, uint8_t state)
 Set RTS pin state. More...
 
void wifi9_select_uart (wifi9_t *ctx, uint8_t uart_select)
 Switch to a command or binary uart. More...
 
uint8_t wifi9_get_mcr_pin (wifi9_t *ctx)
 Get MCR pin state. More...
 
uint8_t wifi9_get_cts_pin (wifi9_t *ctx)
 Get CTS pin state. More...
 
void wifi9_generic_write (wifi9_t *ctx, uint8_t *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t wifi9_generic_read (wifi9_t *ctx, uint8_t *data_buf, uint16_t max_len)
 Generic read function. More...
 
void wifi9_send_command (wifi9_t *ctx, uint8_t *command)
 Send Command function. More...
 

Detailed Description

Function Documentation

◆ wifi9_cfg_setup()

void wifi9_cfg_setup ( wifi9_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ wifi9_generic_read()

int32_t wifi9_generic_read ( wifi9_t ctx,
uint8_t *  data_buf,
uint16_t  max_len 
)

Generic read function.

Parameters
ctxClick object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ wifi9_generic_write()

void wifi9_generic_write ( wifi9_t ctx,
uint8_t *  data_buf,
uint16_t  len 
)

Generic write function.

Parameters
ctxClick object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ wifi9_get_cts_pin()

uint8_t wifi9_get_cts_pin ( wifi9_t ctx)

Get CTS pin state.

Parameters
ctxClick object.
Returns
Pin state

◆ wifi9_get_mcr_pin()

uint8_t wifi9_get_mcr_pin ( wifi9_t ctx)

Get MCR pin state.

Parameters
ctxClick object.
Returns
Pin state

◆ wifi9_init()

err_t wifi9_init ( wifi9_t ctx,
wifi9_cfg_t cfg 
)

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

This function initializes all necessary pins and peripherals used for this click.

◆ wifi9_reset_device()

void wifi9_reset_device ( wifi9_t ctx)

Module reset.

Parameters
ctxClick object.

◆ wifi9_select_uart()

void wifi9_select_uart ( wifi9_t ctx,
uint8_t  uart_select 
)

Switch to a command or binary uart.

Parameters
ctxClick object.
uart_selectCMD_UART or BIN_UART

◆ wifi9_send_command()

void wifi9_send_command ( wifi9_t ctx,
uint8_t *  command 
)

Send Command function.

Parameters
ctxClick object.
commandCommand. This function sends comamnd.

◆ wifi9_set_rst_pin()

void wifi9_set_rst_pin ( wifi9_t ctx,
uint8_t  state 
)

Set RST pin state.

Parameters
ctxClick object.
statePin state

◆ wifi9_set_rts_pin()

void wifi9_set_rts_pin ( wifi9_t ctx,
uint8_t  state 
)

Set RTS pin state.

Parameters
ctxClick object.
statePin state