blob: 30e60ec4d29f7d56f8163a20dc28feb858470dc5 [file] [log] [blame]
Johnny Kimc5c77ba2015-05-11 14:30:56 +09001/* ////////////////////////////////////////////////////////////////////////// */
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
13typedef struct {
Chaehyun Limec53adf2015-09-15 14:06:15 +090014 u16 id;
15 u16 val;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090016} wilc_cfg_byte_t;
17
18typedef struct {
Chaehyun Limec53adf2015-09-15 14:06:15 +090019 u16 id;
20 u16 val;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090021} wilc_cfg_hword_t;
22
23typedef struct {
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090024 u32 id;
25 u32 val;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090026} wilc_cfg_word_t;
27
28typedef struct {
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090029 u32 id;
Chaehyun Lim51e825f2015-09-15 14:06:14 +090030 u8 *str;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090031} wilc_cfg_str_t;
32
Glen Lee17e8f162015-10-02 14:22:07 +090033int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size);
Glen Leeec1b86b2015-10-02 14:22:08 +090034int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id);
Glen Lee355cca22015-10-02 14:22:09 +090035int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size);
Glen Lee30f535a2015-10-02 14:22:10 +090036int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, wilc_cfg_rsp_t *rsp);
Glen Lee814bc362015-10-02 14:22:11 +090037int wilc_wlan_cfg_init(wilc_debug_func func);
Glen Lee17e8f162015-10-02 14:22:07 +090038
Johnny Kimc5c77ba2015-05-11 14:30:56 +090039#endif