(self)
return CanMessage(
            arbitration_id=ArbitrationId(id=m.arbitration_id), data=m.data
        )
Read a message.

        Returns:
            A can message

        Raises:
            ErrorFrameCanError
Read a message.
Read a message .
async def read(self) -> CanMessage:
        """Read a message.

        Returns:
            A can message

        Raises:
            ErrorFrameCanError
        """
        m: Message = await self._reader.get_message()
        if m.is_error_frame:
            raise ErrorFrameCanError(message=repr(m))

        return CanMessage(
            arbitration_id=ArbitrationId(id=m.arbitration_id), data=m.data
        )
async def read ( self ) -> CanMessage : m : Message = await self . _reader . get_message ( ) if m . is_error_frame : raise ErrorFrameCanError ( message = repr ( m ) ) return CanMessage ( arbitration_id = ArbitrationId ( id = m . arbitration_id ) , data = m . data )