1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
use crate::enum_wrapper;
use enum2repr::EnumRepr;
#[cfg(doc)]
use crate::UdsCommand;
/// [`UdsCommand::ReadDTCInformation`] sub-function definitions
#[repr(u8)]
#[derive(EnumRepr, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
#[deprecated(
note = "The `auto_uds` crate has been renamed to `automotive_diag`. Update your Cargo.toml, and use this enum from the `uds` namespace."
)]
pub enum DtcSubFunction {
/// This function takes a 1 byte DTCStatusMask
ReportNumberOfDtcByStatusMask = 0x01,
/// This function takes a 1 byte DTCStatusMask
ReportDtcByStatusMask = 0x02,
/// This function takes a 1 byte DTCStatusMask
ReportMirrorMemoryDtcByStatusMask = 0x0F,
/// This function takes a 1 byte DTCStatusMask
ReportNumberOfMirrorMemoryDtcByStatusMask = 0x11,
/// This function takes a 1 byte DTCStatusMask
ReportNumberOfEmissionsRelatedObdDtcByStatusMask = 0x12,
/// This function takes a 1 byte DTCStatusMask
ReportEmissionsRelatedObdDtcByStatusMask = 0x13,
/// This function takes a 3 byte DTCMaskRecord and a 1 byte DTCSnapshotRecordNumber
ReportDtcSnapshotIdentifier = 0x03,
/// This function takes a 3 byte DTCMaskRecord and a 1 byte DTCSnapshotRecordNumber
ReportDtcSnapshotRecordByDtcNumber = 0x04,
/// This function takes a 1 byte DTCSnapshotRecordNumber
ReportDtcSnapshotRecordByRecordNumber = 0x05,
/// This function take a 3 byte DTCMaskRecord and a 1 byte DTCExtendedDataRecordNumber
ReportDtcExtendedDataRecordByDtcNumber = 0x06,
/// This function take a 3 byte DTCMaskRecord and a 1 byte DTCExtendedDataRecordNumber
ReportMirrorMemoryDtcExtendedDataRecordByDtcNumber = 0x10,
/// This function takes a 1 byte DTCSeverityMask and a 1 byte DTCStatusMask
ReportNumberOfDtcBySeverityMaskRecord = 0x07,
/// This function takes a 1 byte DTCSeverityMask and a 1 byte DTCStatusMask
ReportDtcBySeverityMaskRecord = 0x08,
/// This function takes a 3 byte DTCMaskRecord
ReportSeverityInformationOfDtc = 0x09,
/// This function take no additional arguments
ReportSupportedDtc = 0x0A,
/// This function take no additional arguments
ReportFirstTestFailedDtc = 0x0B,
/// This function take no additional arguments
ReportFirstConfirmedDtc = 0x0C,
/// This function take no additional arguments
ReportMostRecentTestFailedDtc = 0x0D,
/// This function take no additional arguments
ReportMostRecentConfirmedDtc = 0x0E,
/// This function take no additional arguments
ReportDtcFaultDetectionCounter = 0x14,
/// This function take no additional arguments
ReportDtcWithPermanentStatus = 0x15,
}
enum_wrapper!(DtcSubFunction, DtcSubFunctionByte);