pub struct UdsClient<'a, T: CanSocketTx> { /* private fields */ }Implementations§
Source§impl<'a, T: CanSocketTx> UdsClient<'a, T>
impl<'a, T: CanSocketTx> UdsClient<'a, T>
pub fn new(channel: T, id: u32, resp: &'a LazyLock<Arc<ResponseSlot>>) -> Self
Sourcepub fn send_command<P: Into<u8>, M: Into<u8>>(
&mut self,
pci: P,
cmd: M,
args: &[u8],
) -> Result<(), DiagError>
pub fn send_command<P: Into<u8>, M: Into<u8>>( &mut self, pci: P, cmd: M, args: &[u8], ) -> Result<(), DiagError>
Send a command without the response.
The frame includes
Source§impl<T: CanSocketTx> UdsClient<'_, T>
impl<T: CanSocketTx> UdsClient<'_, T>
Sourcepub async fn uds_reset_118(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_118(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x40 Description: The function will request an ECU reset event for Realtime chip.
Sourcepub async fn uds_reset_148(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_148(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x41 Description: The function will request an ECU reset event for Telematic chip.
Sourcepub async fn uds_reset_imx(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_imx(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x42 Description: The function will request an ECU reset event for IMX chip.
Sourcepub async fn uds_reset_esp32_wifi(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_esp32_wifi(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x43 Description: The function will request an ECU reset event for Esp-Wifi chip.
Sourcepub async fn uds_reset_esp32_ble(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_esp32_ble(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x44 Description: The function will request an ECU reset event for Esp-Ble chip.
Sourcepub async fn uds_reset_lte(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_lte(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x45 Description: The function will request an ECU reset event for LTE chip.
Sourcepub async fn uds_reset_lizard(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_lizard(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x46 Description: The function will request an ECU reset event for Lizard chip.
Sourcepub async fn uds_reset_cendric(&mut self) -> Result<(), DiagError>
pub async fn uds_reset_cendric(&mut self) -> Result<(), DiagError>
Service ID: 0x11 - ECU Reset Sub-ID: 0x47 Description: The function will request an ECU reset event for Cendric chip.
Source§impl<T: CanSocketTx> UdsClient<'_, T>
impl<T: CanSocketTx> UdsClient<'_, T>
Source§impl<T: CanSocketTx> UdsClient<'_, T>
impl<T: CanSocketTx> UdsClient<'_, T>
Sourcepub async fn uds_real_time_data_slow(&mut self) -> Result<(), DiagError>
pub async fn uds_real_time_data_slow(&mut self) -> Result<(), DiagError>
Service ID: 0x2A - Data Transmission Sub-ID: 0x01 Description: The function will request an Realtime data sent from ECU with slow rate.
Sourcepub async fn uds_real_time_data_medium(&mut self) -> Result<(), DiagError>
pub async fn uds_real_time_data_medium(&mut self) -> Result<(), DiagError>
Service ID: 0x2A - Data Transmission Sub-ID: 0x02 Description: The function will request an Realtime data sent from ECU with medium rate.
Sourcepub async fn uds_real_time_data_fast(&mut self) -> Result<(), DiagError>
pub async fn uds_real_time_data_fast(&mut self) -> Result<(), DiagError>
Service ID: 0x2A - Data Transmission Sub-ID: 0x03 Description: The function will request an Realtime data sent from ECU with fast rate.
Sourcepub async fn uds_real_time_data_stop(&mut self) -> Result<(), DiagError>
pub async fn uds_real_time_data_stop(&mut self) -> Result<(), DiagError>
Service ID: 0x2A - Data Transmission Sub-ID: 0x04 Description: The function will send a stop event for realtime data from ECU.
Auto Trait Implementations§
impl<'a, T> Freeze for UdsClient<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for UdsClient<'a, T>
impl<'a, T> Send for UdsClient<'a, T>where
T: Send,
impl<'a, T> Sync for UdsClient<'a, T>where
T: Sync,
impl<'a, T> Unpin for UdsClient<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for UdsClient<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more