Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
MCP2515Can::BufferRead Class Reference

Setup a buffer read transfer structure. More...

Inheritance diagram for MCP2515Can::BufferRead:
MCP2515Can::Buffer

Public Member Functions

 BufferRead (int index)
 Constructor.
 
- Public Member Functions inherited from MCP2515Can::Buffer
void build_struct_can_frame (struct can_frame *can_frame)
 Take the contents of the Buffer and fill in a can_frame structure.
 
void * get_payload ()
 Get a pointer to the buffer payload.
 

Additional Inherited Members

- Static Public Attributes inherited from MCP2515Can::Buffer
static const size_t TRANSFER_SIZE = 14
 The SPI transfer size in bytes of a buffer transfer.
 
- Protected Member Functions inherited from MCP2515Can::Buffer
 Buffer (struct can_frame *can_frame, uint8_t command)
 Constructor.
 
 Buffer (uint8_t command)
 Constructor.
 
- Protected Attributes inherited from MCP2515Can::Buffer
uint8_t pad_ [2]
 force the data to 32/64-bit allign
 
uint8_t command_
 the transaction command
 
uint8_t sidh_
 standard identifier high byte
 
struct { 
 
   uint8_t   eid_: 2 
 extended identifier bits 16 and 17 More...
 
   uint8_t   unused1_: 1 
 unused bit More...
 
   uint8_t   exide_: 1 
 extended identifer enable More...
 
   uint8_t   srr_: 1 
 standard frame RTR More...
 
   uint8_t   sid_: 3 
 standard identifier low bits More...
 
};  
 
uint8_t eid8_
 extended identifier high byte
 
uint8_t eid0_
 extended identifier low byte
 
struct { 
 
   uint8_t   dlc_: 4 
 data length code More...
 
   uint8_t   unused3_: 2 
 unused bits More...
 
   uint8_t   rtr_: 1 
 remote transmit request bit More...
 
   uint8_t   unused4_: 1 
 unused bit More...
 
};  
 
union { 
 
   uint64_t   data64_ 
 64-bit data More...
 
   uint8_t   data_ [8] 
 all 8 data bytes More...
 
};  
 

Detailed Description

Setup a buffer read transfer structure.

Definition at line 496 of file MCP2515Can.hxx.

Constructor & Destructor Documentation

◆ BufferRead()

MCP2515Can::BufferRead::BufferRead ( int  index)
inline

Constructor.

Parameters
indexbuffer index to read from (valid values are 0 and 1)

Definition at line 502 of file MCP2515Can.hxx.


The documentation for this class was generated from the following file: