Mini can app
Dependencies: mbed mbed-STM32F103C8T6
wiced_types.h
00001 #ifndef __WICED_TYPES_H 00002 #define __WICED_TYPES_H 00003 typedef enum {WICED_FALSE=0, WICED_TRUE=1} wiced_bool_t; 00004 00005 #define RESULT_ENUM( prefix, name, value ) prefix ## name = (value) 00006 #define WICED_RESULT_LIST( prefix ) \ 00007 RESULT_ENUM( prefix, SUCCESS, 0 ), /**< Success */ \ 00008 RESULT_ENUM( prefix, PENDING, 1 ), /**< Pending */ \ 00009 RESULT_ENUM( prefix, TIMEOUT, 2 ), /**< Timeout */ \ 00010 RESULT_ENUM( prefix, PARTIAL_RESULTS, 3 ), /**< Partial results */ \ 00011 RESULT_ENUM( prefix, ERROR, 4 ), /**< Error */ \ 00012 RESULT_ENUM( prefix, BADARG, 5 ), /**< Bad Arguments */ \ 00013 RESULT_ENUM( prefix, BADOPTION, 6 ), /**< Mode not supported */ \ 00014 RESULT_ENUM( prefix, UNSUPPORTED, 7 ), /**< Unsupported function */ \ 00015 RESULT_ENUM( prefix, OUT_OF_HEAP_SPACE, 8 ), /**< Dynamic memory space exhausted */ \ 00016 RESULT_ENUM( prefix, NOTUP, 9 ), /**< Interface is not currently Up */ \ 00017 RESULT_ENUM( prefix, UNFINISHED, 10 ), /**< Operation not finished yet */ \ 00018 RESULT_ENUM( prefix, CONNECTION_LOST, 11 ), /**< Connection to server lost */ \ 00019 RESULT_ENUM( prefix, NOT_FOUND, 12 ), /**< Item not found */ \ 00020 RESULT_ENUM( prefix, PACKET_BUFFER_CORRUPT, 13 ), /**< Packet buffer corrupted */ \ 00021 RESULT_ENUM( prefix, ROUTING_ERROR, 14 ), /**< Routing error */ \ 00022 RESULT_ENUM( prefix, BADVALUE, 15 ), /**< Bad value */ \ 00023 RESULT_ENUM( prefix, WOULD_BLOCK, 16 ), /**< Function would block */ \ 00024 RESULT_ENUM( prefix, ABORTED, 17 ), /**< Operation aborted */ \ 00025 RESULT_ENUM( prefix, CONNECTION_RESET, 18 ), /**< Connection has been reset */ \ 00026 RESULT_ENUM( prefix, CONNECTION_CLOSED, 19 ), /**< Connection is closed */ \ 00027 RESULT_ENUM( prefix, NOT_CONNECTED, 20 ), /**< Connection is not connected */ \ 00028 RESULT_ENUM( prefix, ADDRESS_IN_USE, 21 ), /**< Address is in use */ \ 00029 RESULT_ENUM( prefix, NETWORK_INTERFACE_ERROR, 22 ), /**< Network interface error */ \ 00030 RESULT_ENUM( prefix, ALREADY_CONNECTED, 23 ), /**< Socket is already connected */ \ 00031 RESULT_ENUM( prefix, INVALID_INTERFACE, 24 ), /**< Interface specified in invalid */ \ 00032 RESULT_ENUM( prefix, SOCKET_CREATE_FAIL, 25 ), /**< Socket creation failed */ \ 00033 RESULT_ENUM( prefix, INVALID_SOCKET, 26 ), /**< Socket is invalid */ \ 00034 RESULT_ENUM( prefix, CORRUPT_PACKET_BUFFER, 27 ), /**< Packet buffer is corrupted */ \ 00035 RESULT_ENUM( prefix, UNKNOWN_NETWORK_STACK_ERROR, 28 ), /**< Unknown network stack error */ \ 00036 RESULT_ENUM( prefix, NO_STORED_AP_IN_DCT, 29 ), /**< DCT contains no AP credentials */ \ 00037 RESULT_ENUM( prefix, STA_JOIN_FAILED, 30 ), /**< Join failed */ \ 00038 RESULT_ENUM( prefix, PACKET_BUFFER_OVERFLOW, 31 ), /**< Packet buffer overflow */ \ 00039 RESULT_ENUM( prefix, ALREADY_INITIALIZED, 32 ), /**< Module has already been inited */ 00040 00041 typedef enum 00042 { 00043 WICED_RESULT_LIST ( WICED_ ) /* 0 - 999 */ 00044 // WWD_RESULT_LIST ( WICED_WWD_ ) /* 1000 - 1999 */ 00045 // WLAN_RESULT_LIST ( WICED_WLAN_ ) /* 2000 - 2999 */ 00046 // WPS_BESL_RESULT_LIST ( WICED_BESL_ ) /* 3000 - 3999 */ 00047 // RESOURCE_RESULT_LIST ( WICED_RESOURCE_ ) /* 4000 - 4999 */ 00048 // TLS_RESULT_LIST ( WICED_TLS_ ) /* 5000 - 5999 */ 00049 // PLATFORM_RESULT_LIST ( WICED_PLATFORM_ ) /* 6000 - 6999 */ 00050 // TCPIP_RESULT_LIST ( WICED_TCPIP_ ) /* 7000 - 7999 */ 00051 // BT_RESULT_LIST ( WICED_BT_ ) /* 8000 - 8999 */ 00052 // P2P_RESULT_LIST ( WICED_P2P_ ) /* 9000 - 9999 */ 00053 // FILESYSTEM_RESULT_LIST( WICED_FILESYSTEM_ ) /* 10000 - 10999 */ 00054 } wiced_result_t; 00055 typedef enum 00056 { 00057 INPUT_HIGH_IMPEDANCE, /* Input - must always be driven, either actively or by an external pullup resistor */ 00058 INPUT_PULL_UP, /* Input with an internal pull-up resistor - use with devices that actively drive the signal low - e.g. button connected to ground */ 00059 INPUT_PULL_DOWN, /* Input with an internal pull-down resistor - use with devices that actively drive the signal high - e.g. button connected to a power rail */ 00060 OUTPUT_PUSH_PULL, /* Output actively driven high and actively driven low - must not be connected to other active outputs - e.g. LED output */ 00061 OUTPUT_OPEN_DRAIN_NO_PULL, /* Output actively driven low but is high-impedance when set high - can be connected to other open-drain/open-collector outputs. Needs an external pull-up resistor */ 00062 OUTPUT_OPEN_DRAIN_PULL_UP, /* Output actively driven low and is pulled high with an internal resistor when set high - can be connected to other open-drain/open-collector outputs. */ 00063 } platform_pin_config_t; 00064 00065 00066 #endif
Generated on Fri Jul 15 2022 20:08:26 by
1.7.2