|
Open Model Railroad Network (OpenMRN)
|
Go to the source code of this file.
Classes | |
| struct | CanMessageData |
| Thin wrapper around struct can_frame that will allow a dispatcher select the frames by CAN ID and mask as desired by the handlers. More... | |
| class | CanFrameWriteFlow |
| Interface class for the asynchronous frame write flow. More... | |
| class | CanFrameReadFlow |
| This flow is responsible for taking data from the can HUB and sending it to the IfCan's dispatcher. More... | |
| class | CanIf |
| Interface class for CANbus-based protocols. More... | |
Typedefs | |
| typedef FlowInterface< Buffer< CanMessageData > > | IncomingFrameHandler |
| typedef StateFlow< Buffer< CanMessageData >, QList< 1 > > | IncomingFrameFlow |
| StateFlow handling incoming messages as registered to the message dispatcher. | |
| typedef FlowInterface< Buffer< CanHubData > > | OutgoingFrameHandler |
| Base class of flow to send outgoing CAN frames to. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Defines a service for interfacing with a CANbus. The interface receives incoming frames from the bus device and proxies it to various handlers that the user may register for specific ranges of CAN identifiers.
Definition in file CanIf.hxx.
| typedef StateFlow<Buffer<CanMessageData>, QList<1> > IncomingFrameFlow |
| typedef FlowInterface<Buffer<CanMessageData> > IncomingFrameHandler |
| typedef FlowInterface<Buffer<CanHubData> > OutgoingFrameHandler |