//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar. All rights reserved. // //----------------------------------------------------------------------- /* * Software to access vehicle information via the OBD-II connector. * * Copyright © 2012 Nils Hammar * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Alternative licensing is possible, see the licensing document. * * The above text may not be removed or modified. */ namespace DynamicApiLoading.Api.Dynamic.RP1210 { /// /// RP1210 API Return Values. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1717:OnlyFlagsEnumsShouldHavePluralNames", Justification = "This is an enum.")] public enum RP1210_Returns { /// /// No Error /// NO_ERRORS = 0, /// /// The API DLL was not initialized. /// ERR_DLL_NOT_INITIALIZED = 128, /// /// The identifier for the client to be disconnected was invalid. /// ERR_INVALID_CLIENT_ID = 129, /// /// A client is already connected to the specified device. /// ERR_CLIENT_ALREADY_CONNECTED = 130, /// /// The maximum number of connections has been reached. /// ERR_CLIENT_AREA_FULL = 131, /// /// An error occurred in the process of memory de-allocation. /// ERR_FREE_MEMORY = 132, /// /// The API DLL could not allocate enough memory to create the client. /// ERR_NOT_ENOUGH_MEMORY = 133, /// /// The specified device ID is invalid. /// ERR_INVALID_DEVICE = 134, /// /// The specified device is already in use and does not have the ability /// to maintain connections with multiple clients simultaneously. /// ERR_DEVICE_IN_USE = 135, /// /// The specified protocol is invalid or unsupported or the extended /// connect string (fpchProtocol) was incorrect or unsupported. /// ERR_INVALID_PROTOCOL = 136, /// /// The API DLL’s transmit message queue is full. /// ERR_TX_QUEUE_FULL = 137, /// /// The API DLL’s transmit message queue is corrupt. /// ERR_TX_QUEUE_CORRUPT = 138, /// /// The API DLL’s receive message queue is full. /// ERR_RX_QUEUE_FULL = 139, /// /// The API DLL’s receive message queue is corrupt. /// ERR_RX_QUEUE_CORRUPT = 140, /// /// The message being sought to be received is too long for the user’s buffer. /// ERR_MESSAGE_TOO_LONG = 141, /// /// The device is not responding. /// ERR_HARDWARE_NOT_RESPONDING = 142, /// /// The command number is not supported by the API DLL. /// ERR_COMMAND_NOT_SUPPORTED = 143, /// /// A command parameter is not supported. /// ERR_INVALID_COMMAND = 144, /// /// Tx message status error. /// ERR_TXMESSAGE_STATUS = 145, /// /// The API was not able to claim the requested address. /// ERR_ADDRESS_CLAIM_FAILED = 146, /// /// Can't set priority. /// ERR_CANNOT_SET_PRIORITY = 147, /// /// Indicates RP1210_ClientDisconnect was called on the nClientID. /// ERR_CLIENT_DISCONNECTED = 148, /// /// Only one connection is allowed in the requested Mode. /// ERR_CONNECT_NOT_ALLOWED = 149, /// /// Change Mode failed. /// ERR_CHANGE_MODE_FAILED = 150, /// /// The API was not able to transmit a CAN packet due to the CAN hardware being in a BUS_OFF condition. /// ERR_BUS_OFF = 151, /// /// The API was not able to request an address. /// ERR_COULD_NOT_TX_ADDRESS_CLAIMED = 152, /// /// The API was forced to concede the address to another node on the network. /// ERR_ADDRESS_LOST = 153, /// /// The error code provided does not have an associated textual representation associated with it. /// ERR_CODE_NOT_FOUND = 154, /// /// This was a legacy Windows 3.1 return code. /// ERR_BLOCK_NOT_ALLOWED = 155, /// /// The API was not able to reset the device because more than one client is connected. /// ERR_MULTIPLE_CLIENTS_CONNECTED = 156, /// /// J1939 client never protected an address. This return code is for J1939 only. /// ERR_ADDRESS_NEVER_CLAIMED = 157, /// /// Window handle required. /// ERR_WINDOW_HANDLE_REQUIRED = 158, /// /// Returned if an error has occurred queuing the message. /// ERR_MESSAGE_NOT_SENT = 159, /// /// Max notify exceeded. /// ERR_MAX_NOTIFY_EXCEEDED = 160, /// /// Max filters exceeded. /// ERR_MAX_FILTERS_EXCEEDED = 161, /// /// Hardware status change. /// ERR_HARDWARE_STATUS_CHANGE = 162, /// /// INI file not found. /// ERR_INI_FILE_NOT_IN_WIN_DIR = 202, /// /// INI section not found. /// ERR_INI_SECTION_NOT_FOUND = 204, /// /// INI key not found. /// ERR_INI_KEY_NOT_FOUND = 205, /// /// Invalid key string. /// ERR_INVALID_KEY_STRING = 206, /// /// Device not supported. /// ERR_DEVICE_NOT_SUPPORTED = 207, /// /// Invalid port parameter. /// ERR_INVALID_PORT_PARAM = 208, /// /// Command timed out. /// ERR_COMMAND_TIMED_OUT = 213, /// /// Operating System not supported. /// ERR_OS_NOT_SUPPORTED = 220, /// /// Command queue is full. /// ERR_COMMAND_QUEUE_IS_FULL = 222, /// /// Can't set baud rate. /// ERR_CANNOT_SET_CAN_BAUDRATE = 224, /// /// Can't claim broadcast address. /// ERR_CANNOT_CLAIM_BROADCAST_ADDRESS = 225, /// /// Out of address resources. /// ERR_OUT_OF_ADDRESS_RESOURCES = 226, /// /// The API was not able to release the requested address. /// ERR_ADDRESS_RELEASE_FAILED = 227, /// /// Communication device is in use. /// ERR_COMM_DEVICE_IN_USE = 230, /// /// DLL not found. /// DG_DLL_NOT_FOUND = 254, /// /// Busy sending. /// DG_BUSY_SENDING = 255, /// /// Data link conflict. /// ERR_DATA_LINK_CONFLICT = 441, /// /// Adapter not responding. /// ERR_ADAPTER_NOT_RESPONDING = 453, /// /// Another application already has the baud rate set non-standard. /// ERR_CAN_BAUD_SET_NONSTANDARD = 454, /// /// RP1210_Disallow_Further_Connections was issued previously. /// /// Added to RP1210B was the ability to disallow another applications or clients from issuing a client connection /// through the vehicle adapter. This allows time-sensitive applications or applications that “must” be the /// only application/client with a connection to the databus to operate unimpeded by other applications/clients. /// This command can only be issued if there are no other applications using the specified databus. Once this /// client connection terminates, other clients will be allowed to connect. This command would be common /// in end-of-line programming stations. /// /// ERR_MULTIPLE_CONNECTIONS_NOT_ALLOWED_NOW = 455, /// /// Another application already has the baud rate set non-standard. /// ERR_J1708_BAUD_SET_NONSTANDARD = 456, /// /// Another application already has the baud rate set non-standard. /// ERR_J1939_BAUD_SET_NONSTANDARD = 457, /// /// Another application already has the baud rate set non-standard. /// ERR_ISO15765_BAUD_SET_NONSTANDARD = 458 } }