Expand description
A core implementation of the D-PDU API (ISO 22900-2).
This crate just provides the type definitions in order to use the API with Rust code.
For a crate that actually uses this API, you can check the ecu_diagnostics crate
NOTE: To match the rust naming convention, enums and structure names have been slightly renamed.
Structs§
- CopCtrl
Data - Com primitive control data
- EcuUnique
Resp Data - ECU Unique response data
- Error
Data - Async error notification data
- EthSwitch
State - IOCTL ethernet switch state
- Event
Item - Event notification item
- ExpResp
Data - Expected response structure
- Extra
Info - Extra information data
- Flag
Data - Flag data
- Info
Data - Async event information data
- IoByte
Array Data - IOCTL Byte array structure
- IoEntity
Address Data - DoIP IO Entity address data
- IoEntity
Status Data - DoIP IO Entity status data
- IoEvent
Queue Property Data - IOCTL Event queue property data
- IoFilter
Data - IOCTL Filter data structure
- IoProg
Voltage Data - IOCTL programming voltage structure
- IpAddr
Info - Address info
- Module
Data - Module identification data
- Module
Item - Module identification information
- Param
Byte Field Data - ComParam byte field data
- Param
Item - ComParam data information
- Param
Long Field Data - Long field data
- Param
Struct Access Timing - Access timing for ParamStructFieldData when ParamStructFieldData::com_param_struct_type is PduCpst::AccessTiming
- Param
Struct Field Data - ComParam struct field data
- Param
Struct Session Timing - Session timing for ParamStructFieldData when ParamStructFieldData::com_param_struct_type is PduCpst::SessionTiming
- PduData
Item - Generic IOCTL type structure
- PduItem
- Generic structure containing item type
- PinData
- Pin Data
- Result
Data - Async result notification
- RscConflict
Data - Resource conflict data
- RscConflict
Item - Resource conflict item
- RscData
- Resource data
- RscId
Item - Item resource identification item
- RscId
Item Data - Item resource identification data
- RscStatus
Data - Resource status data
- RscStatus
Item - Resource status item
- Unique
Resp IdTable Item - Unique response identification data
- Vehicle
IdRequest - IOCTL Vehicle ID request
- Version
Data - Version information
Enums§
- Combination
Mode - DoIP Combination mode
- PduCopt
- Communication primitive (ComParam) type
- PduCpst
- ComParam struct type
- PduError
- Function return values
- PduError
Evt - Function error events (Used in asynchronous situations)
- PduEvt
Data - Event callback
- PduFilter
- Filter type
- PduInfo
- Information events
- PduIt
- Item type values
- PduObjt
- Object type
- PduPc
- ComParam data class
- PduPt
- ComParam data type
- PduQueue
Mode - IOCTL queue mode
- PduStatus
- Status codes
- Timing
Set - Timing set types used by [ParamStructAccessTiming]
- VidPreselect
Mode - Vehicle preselection mode
Constants§
- PDU_
HANDLE_ UNDEF - Undefined handle value
- PDU_
ID_ UNDEF - Undefined ID value
Type Aliases§
- Event
Callback Fn - PDU Event callback function type
- PduCancel
ComPrimitive Fn - Cancels and stops a ComPrimitive
- PduConnect
Fn - Connects a ComLogicalLink to a vehicle interface
- PduConstruct
Fn - Constructs and initializes the PDU API library
- PduCreate
ComLogical Link Fn - Creates a ComLogicalLink for a given resource ID
- PduDestroy
ComLogical Link Fn - Destroys a given ComLogicalLink
- PduDestroy
Item Fn - Destroys a given item
- PduDestruct
Fn - Closes all open communication channels and destructs the PDU API library
- PduDisconnect
Fn - Disconnects a ComLogicalLink from a vehicle interface
- PduGet
ComParam Fn - Obtains a communication or bus ComParam out of the MVCIs working buffer of a ComLogicalLink
- PduGet
Conflicting Resources Fn - Gets a list of conflicting resources
- PduGet
Event Item Fn - Retrieves event data for a given event source
- PduGet
List Error Fn - Gets the last runtime error from the MVCI module or ComLogicalLink Used for SAE J2534-2 support
- PduGet
Module IdsFn - Object module information
- PduGet
Object IdFn - Gets the Item ID of a given item
- PduGet
Resource IdsFn - Get a list of resource IDs
- PduGet
Resource Status Fn - Obtains resource status information from the PDU API
- PduGet
Status Fn - Gets runtime information from either a MVCI module, ComLogicalLink or ComPrimitive
- PduGet
Timestamp Fn - Obtains the current hardware clock of the MVCI module
- PduGet
Unique Resp IdTable Fn - Gets a list of unique response IDs from a ComLogicalLink
- PduGet
Version Fn - Gets version information from MVCI module
- PduIoctl
Fn - Performs generic IOCTL calls on a MVCI or ComLogicalLink
- PduLock
Resource Fn - Locks a physical resource so that a ComLogicalLink has exclusive access to it
- PduModule
Connect Fn - Determines if a MVCI module is available to connect
- PduModule
Disconnect Fn - Tries to close all communication channels of a MVCI module
- PduRegister
Callback Fn - Registers a callback function
- PduSet
ComParam Fn - Sets a com param on a ComLogicalLink
- PduSet
Unique Resp IdTable Fn - Sets a unique response ID table for the ComLogicalLink
- PduStart
ComPrimitive Fn - Creates and starts a ComPrimitive
- PduUnlock
Resource Fn - Unlocks a physical resource from a ComLogicalLink that has exclusive access to it