CAN bus
BUFFER_SIZE
buffer_size(can:Channel
) -> Integer
STABLE
Size of the receive buffer for the channel.
CAN:IMPORT_DBC
can:import_dbc(Charstring dbc_file
, Charstring outfile
, Vector of Integer ignored_frames
) -> Charstring
STABLE
No description.
CAN:MUXED_UNPACK
can:muxed_unpack(Binary payload
, Vector params
) -> Real
STABLE
Decode a multiplexed signal in payload.
mux_mask
is the unpak formar for getting the mask from the payload
mux_val
is the value the mux_mask should yield for this to be the muxed
signal
if unpack(mux_mask)[1] = mux_val
then extract signal from payload
CAN:MUXED_UNPACK_SCALE
can:muxed_unpack_scale(Binary payload
, Vector params
) -> Number val
STABLE
Decode a multiplexed signal in payload.
mux_mask
is the unpak formar for getting the mask from the payload
mux_val
is the value the mux_mask should yield for this to be the muxed
signal
if unpack(mux_mask)[1] = mux_val
then extract signal from payload
according to format
, multiply it by k and add c.
CAN:PACE
can:pace( ) -> Real
STABLE
The pace of simulated CANBUS streams
CAN:PLAYBACK_CSV
can:playback_csv(Charstring filename
) -> Stream of Vector
STABLE
Play raw CANBUS stream recorded in CSV format in filename
CAN:PLAYBACK_SOCKETCAN
can:playback_socketcan(Charstring filename
) -> Stream of Vector
STABLE
Play stream of CAN-frames extracted from the socketCAN log file filename
.
CAN:RECORD_CSV
can:record_csv(Charstring filename
, Stream of Vector s
) -> Boolean
STABLE
Record raw CANBUS stream s
in CSV format in 'filename'
CAN:SIGNAL_BUS
can:signal_bus(Vector of Charstring signals
) -> Stream of Vector
STABLE
A bus stream of [ts, s, v]
from the CANBUS stream where
ts
is a timestamp,
ns
is the name of a signal in signals
, and
v
is the value of ns
CAN:SIGNAL_STREAM
can:signal_stream(Vector of Charstring signals
) -> Stream of Vector of Integer
STABLE
Non-timestamped stream of values from CANBUS signals
CAN:SIMULATED_BUS
can:simulated_bus( ) -> Stream of Vector
STABLE
Simulates a raw CANBUS stream
CAN:TS_SIGNAL_STREAM
can:ts_signal_stream(Vector of Charstring signals
) -> Stream of Timeval of Vector of Integer
STABLE
Timestamped stream of values from CANBUS signals
CAN:UNPACK
can:unpack(Binary payload
, Charstring format
) -> Integer
STABLE
Decode signal in payload
according to binary unpack format
CAN:UNPACK_SCALE
can:unpack_scale(Binary payload
, Vector params
) -> Number
STABLE
Decode a signal in payload according to binary unpack format
and then multiply value by k
and add c
: out = kx+c
CAN:WHOLE
can:whole(Binary payload
, Object param
) -> Integer
STABLE
Decoder when the value of a signal is defined as the entire payload
CAN:WUNPACK_SCALE
can:wunpack_scale(Binary payload
, Vector params
) -> Vector of Number
STABLE
Decode signals in payload according to binary unpack format
into a vector v
and then multiply by a scalar k
and add a constant c
to each element: vout = kv+c
CID
cid(can:Signal s
) -> Integer
STABLE
The channel number of CANBUS signal s
DECODER
decoder(can:Signal s
) -> Function
STABLE
A function decode(pl, args) -> Integer to pick up CANBUS signal s
from the frame payload pl
with arguments 'args'
FID
fid(can:Signal s
) -> Integer f
STABLE
The frame identifier of CANBUS signal s
FLOW_NAMESPACE
flow_namespace(can:Channel
) -> Charstring
STABLE
Namespace of the channel flow, used when the canbus data source
is a flow
ID
id(can:Channel
) -> Integer
STABLE
Identifier for a CAN-channel.
NAME
name(can:Channel
) -> Charstring
STABLE
Name of the CAN-channel. On Linux platforms this name
should correspond to the name of the CAN channel interface
PARAMS
params(can:Signal s
) -> Object
STABLE
Arguments for the decoder of CANBUS signal s
SIGNAL_STREAM
signal_stream(can:Signal s
) -> Stream of Integer
STABLE
The stream from CANBUS signal s
TIMEOUT
timeout(can:Channel
) -> Real
STABLE
Time in seconds that the should wait when trying to
read a CAN-frame from the channel
TS_SIGNAL_STREAM
ts_signal_stream(can:Signal s
) -> Stream of Timeval of Integer
STABLE
Timestamped stream from CANBUS signal s