Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 1 | /* ////////////////////////////////////////////////////////////////////////// */ |
| 2 | /* */ |
| 3 | /* Copyright (c) Atmel Corporation. All rights reserved. */ |
| 4 | /* */ |
| 5 | /* Module Name: wilc_wlan_cfg.h */ |
| 6 | /* */ |
| 7 | /* */ |
| 8 | /* ///////////////////////////////////////////////////////////////////////// */ |
| 9 | |
| 10 | #ifndef WILC_WLAN_CFG_H |
| 11 | #define WILC_WLAN_CFG_H |
| 12 | |
| 13 | typedef struct { |
Chaehyun Lim | ec53adf | 2015-09-15 14:06:15 +0900 | [diff] [blame] | 14 | u16 id; |
| 15 | u16 val; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 16 | } wilc_cfg_byte_t; |
| 17 | |
| 18 | typedef struct { |
Chaehyun Lim | ec53adf | 2015-09-15 14:06:15 +0900 | [diff] [blame] | 19 | u16 id; |
| 20 | u16 val; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 21 | } wilc_cfg_hword_t; |
| 22 | |
| 23 | typedef struct { |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 24 | u32 id; |
| 25 | u32 val; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 26 | } wilc_cfg_word_t; |
| 27 | |
| 28 | typedef struct { |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 29 | u32 id; |
Chaehyun Lim | 51e825f | 2015-09-15 14:06:14 +0900 | [diff] [blame] | 30 | u8 *str; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 31 | } wilc_cfg_str_t; |
| 32 | |
Glen Lee | 17e8f16 | 2015-10-02 14:22:07 +0900 | [diff] [blame] | 33 | int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size); |
Glen Lee | ec1b86b | 2015-10-02 14:22:08 +0900 | [diff] [blame] | 34 | int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id); |
Glen Lee | 355cca2 | 2015-10-02 14:22:09 +0900 | [diff] [blame] | 35 | int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size); |
Glen Lee | 30f535a | 2015-10-02 14:22:10 +0900 | [diff] [blame] | 36 | int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, wilc_cfg_rsp_t *rsp); |
Glen Lee | 814bc36 | 2015-10-02 14:22:11 +0900 | [diff] [blame] | 37 | int wilc_wlan_cfg_init(wilc_debug_func func); |
Glen Lee | 17e8f16 | 2015-10-02 14:22:07 +0900 | [diff] [blame] | 38 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 39 | #endif |