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
use crate::{DiagServerResult, DiagnosticServer};
use super::{KWP2000Command, Kwp2000DiagnosticServer};
pub fn disable_normal_message_transmission(
server: &mut Kwp2000DiagnosticServer,
) -> DiagServerResult<()> {
server.execute_command_with_response(
KWP2000Command::DisableNormalMessageTransmission,
&[0x01],
).map(|_|())
}
pub fn enable_normal_message_transmission(
server: &mut Kwp2000DiagnosticServer,
) -> DiagServerResult<()> {
server.execute_command_with_response(
KWP2000Command::EnableNormalMessageTransmission,
&[0x01],
).map(|_|())
}