CoronisSDK_SerialDriverAPI_C  v1.0
 All Files Functions Typedefs Defines
serial_driver_status.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright (c) 2012 Coronis
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 3 of the License, or (at your option) any later version.
00007 
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00011  * Lesser General Public License for more details.
00012 
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  *
00017  * Contributors:
00018  *     Coronis - initial API and implementation
00019  *******************************************************************************/
00020 
00021 #ifndef _SERIAL_DRIVER_STATUS_H_
00022 #define _SERIAL_DRIVER_STATUS_H_
00023 
00029 typedef enum tagSerialDriverStatus {
00030         OK_SERIALDRIVER_SUCCESS,
00031         KO_SENDING_FAILURE,
00032     KO_SERIALFRAME_REQUIRED,
00033     KO_SERIALDRIVER_NOT_OPEN,
00034     KO_SERIALDRIVER_ALREADY_IN_USE,
00035     KO_SERIALDRIVER_ALREADY_OPEN, // 5
00036     KO_SERIALDRIVER_LISTENER_ALREADY_REGISTERED,
00037     KO_SERIALDRIVER_LISTENER_NOT_REGISTERED,
00038     KO_SERIALDRIVER_MAX_SPY_LISTENER_EXCEED,
00039     KO_SERIALPORT_DISCONNECTED,
00040     KO_SERIALPORT_UNEXPECTED_ERROR, // 10
00041     KO_SERIALPORT_NOT_AVAILABLE,
00042     KO_PARAM_SERIALPORTID_NOT_EXIST,
00043     KO_PARAM_BAUDRATE_NOT_VALID,
00044     KO_PARAM_DATABIT_NOT_VALID,
00045     KO_PARAM_STOPBIT_NOT_VALID, // 15
00046     KO_PARAM_PARITY_NOT_VALID,
00047     KO_PARAM_FLOWCONTROLIN_NOT_VALID,
00048     KO_PARAM_FLOWCONTROLOUT_NOT_VALID,
00049     KO_PARAM_LISTENINGPERIOD_NOT_VALID,
00050     KO_PARAM_NOT_VALID // 20
00051 } SerialDriverStatus;
00052 
00053 #endif//_SERIAL_DRIVER_STATUS_H_