rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
serial_can.h File Reference

Detailed Description

Date
Aug 1, 2020
Author
andreika prome.nosp@m.theu.nosp@m.s.pcb.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Andrey Belomutskiy, (c) 2012-2020

Definition in file serial_can.h.

Data Structures

class  IsoTpFrameHeader
 
class  ICanStreamer
 
class  CanStreamerState
 
class  CanRxMessage
 
class  CanTsListener
 
class  CanStreamer
 

Enumerations

enum  IsoTpFrameType { ISO_TP_FRAME_SINGLE = 0 , ISO_TP_FRAME_FIRST = 1 , ISO_TP_FRAME_CONSECUTIVE = 2 , ISO_TP_FRAME_FLOW_CONTROL = 3 }
 

Functions

void canStreamInit (void)
 
msg_t canStreamAddToTxTimeout (size_t *np, const uint8_t *txbuf, sysinterval_t timeout)
 
msg_t canStreamFlushTx (sysinterval_t timeout)
 
msg_t canStreamReceiveTimeout (size_t *np, uint8_t *rxbuf, sysinterval_t timeout)
 

Enumeration Type Documentation

◆ IsoTpFrameType

Enumerator
ISO_TP_FRAME_SINGLE 
ISO_TP_FRAME_FIRST 
ISO_TP_FRAME_CONSECUTIVE 
ISO_TP_FRAME_FLOW_CONTROL 

Definition at line 36 of file serial_can.h.

36 {
41};
@ ISO_TP_FRAME_CONSECUTIVE
Definition serial_can.h:39
@ ISO_TP_FRAME_FIRST
Definition serial_can.h:38
@ ISO_TP_FRAME_FLOW_CONTROL
Definition serial_can.h:40
@ ISO_TP_FRAME_SINGLE
Definition serial_can.h:37

Function Documentation

◆ canStreamAddToTxTimeout()

msg_t canStreamAddToTxTimeout ( size_t np,
const uint8_t *  txbuf,
sysinterval_t  timeout 
)

Definition at line 398 of file serial_can.cpp.

398 {
399 return state.streamAddToTxTimeout(np, txbuf, timeout);
400}
state("state", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1871, 1.0, -1.0, -1.0, "")
Here is the call graph for this function:

◆ canStreamFlushTx()

msg_t canStreamFlushTx ( sysinterval_t  timeout)

Definition at line 402 of file serial_can.cpp.

402 {
403 return state.streamFlushTx(timeout);
404}
Here is the call graph for this function:

◆ canStreamInit()

void canStreamInit ( void  )

Definition at line 394 of file serial_can.cpp.

394 {
395 streamer.init();
396}
static CanStreamer streamer

Referenced by startCanConsole().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canStreamReceiveTimeout()

msg_t canStreamReceiveTimeout ( size_t np,
uint8_t *  rxbuf,
sysinterval_t  timeout 
)

Definition at line 409 of file serial_can.cpp.

409 {
410 return state.streamReceiveTimeout(np, rxbuf, timeout);
411}
Here is the call graph for this function:

Go to the source code of this file.