ZG2100 Network interface source

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers zg_err.h Source File

zg_err.h

Go to the documentation of this file.
00001 
00002 /*
00003 Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com)
00004  
00005 Permission is hereby granted, free of charge, to any person obtaining a copy
00006 of this software and associated documentation files (the "Software"), to deal
00007 in the Software without restriction, including without limitation the rights
00008 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00009 copies of the Software, and to permit persons to whom the Software is
00010 furnished to do so, subject to the following conditions:
00011  
00012 The above copyright notice and this permission notice shall be included in
00013 all copies or substantial portions of the Software.
00014  
00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00018 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00019 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00020 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00021 THE SOFTWARE.
00022 */
00023 
00024 /**
00025 @file
00026 ZG2100 driver errors
00027 */
00028 //Donatien Garnier 2010
00029 
00030 #ifndef ZG_ERR_H
00031 #define ZG_ERR_H
00032 
00033 #include "zg_defs.h"
00034 
00035 ///ZG2100 Wi-Fi Module driver error codes
00036 typedef enum __zg_err 
00037 {
00038   __ZG_MIN = -0xFFFF,
00039   ZG_RESOURCES, ///< Not enough resources
00040   ZG_TIMEOUT, ///< Timeout
00041   ZG_FRAME_ERROR, ///< Framing error
00042   ZG_AUTH_REFUSED, ///< Authentication refused
00043   ZG_ASSOC_REFUSED, ///< Association refused
00044   ZG_IN_PROGRESS, ///< Command is being processed
00045   ZG_SUPPLICANT_FAILED, ///< Error with WPA-handling
00046   ZG_UNKNOWN, ///< Unknown error
00047   ZG_OK = 0 ///< Success
00048 
00049 } zg_err;
00050 
00051 zg_err zg_errcode(ZG_INT_ERR int_err); //Errcodes conversion
00052 
00053 #endif