wifi9 2.0.0.0
|
Functions | |
void | wifi9_cfg_setup (wifi9_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | wifi9_init (wifi9_t *ctx, wifi9_cfg_t *cfg) |
Initialization function. | |
void | wifi9_reset_device (wifi9_t *ctx) |
Module reset. | |
void | wifi9_set_rst_pin (wifi9_t *ctx, uint8_t state) |
Set RST pin state. | |
void | wifi9_set_rts_pin (wifi9_t *ctx, uint8_t state) |
Set RTS pin state. | |
void | wifi9_select_uart (wifi9_t *ctx, uint8_t uart_select) |
Switch to a command or binary uart. | |
uint8_t | wifi9_get_mcr_pin (wifi9_t *ctx) |
Get MCR pin state. | |
uint8_t | wifi9_get_cts_pin (wifi9_t *ctx) |
Get CTS pin state. | |
void | wifi9_generic_write (wifi9_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
int32_t | wifi9_generic_read (wifi9_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
void | wifi9_send_command (wifi9_t *ctx, uint8_t *command) |
Send Command function. | |
void wifi9_cfg_setup | ( | wifi9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
int32_t wifi9_generic_read | ( | wifi9_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void wifi9_generic_write | ( | wifi9_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t wifi9_get_cts_pin | ( | wifi9_t * | ctx | ) |
Get CTS pin state.
ctx | Click object. |
uint8_t wifi9_get_mcr_pin | ( | wifi9_t * | ctx | ) |
Get MCR pin state.
ctx | Click object. |
err_t wifi9_init | ( | wifi9_t * | ctx, |
wifi9_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void wifi9_reset_device | ( | wifi9_t * | ctx | ) |
Module reset.
ctx | Click object. |
void wifi9_select_uart | ( | wifi9_t * | ctx, |
uint8_t | uart_select ) |
Switch to a command or binary uart.
ctx | Click object. |
uart_select | CMD_UART or BIN_UART |
void wifi9_send_command | ( | wifi9_t * | ctx, |
uint8_t * | command ) |
Send Command function.
ctx | Click object. |
command | Command. |
This function sends comamnd.
void wifi9_set_rst_pin | ( | wifi9_t * | ctx, |
uint8_t | state ) |
Set RST pin state.
ctx | Click object. |
state | Pin state |
void wifi9_set_rts_pin | ( | wifi9_t * | ctx, |
uint8_t | state ) |
Set RTS pin state.
ctx | Click object. |
state | Pin state |