Exemplo n.º 1
0
 internal unsafe CANFrame(Frame *lowLevelFrame, ICandleAPI api)
 {
     RawId       = lowLevelFrame->CanId;
     Id          = api.candle_frame_id(lowLevelFrame);
     data        = lowLevelFrame->Data;
     DLC         = api.candle_frame_dlc(lowLevelFrame);
     IsExtended  = api.candle_frame_is_extended_id(lowLevelFrame) != 0;
     IsRTR       = api.candle_frame_is_rtr(lowLevelFrame) != 0;
     TimestampUs = api.candle_frame_timestamp_us(lowLevelFrame);
 }
Exemplo n.º 2
0
 internal Channel(IntPtr device, byte channelNum, ICandleAPI api)
 {
     this.device     = device;
     this.channelNum = channelNum;
     this.api        = api;
 }
Exemplo n.º 3
0
 private CANable(IntPtr id, ICandleAPI api)
 {
     this.handle = id;
     this.api    = api;
 }