예제 #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);
 }
예제 #2
0
 internal Channel(IntPtr device, byte channelNum, ICandleAPI api)
 {
     this.device     = device;
     this.channelNum = channelNum;
     this.api        = api;
 }
예제 #3
0
 private CANable(IntPtr id, ICandleAPI api)
 {
     this.handle = id;
     this.api    = api;
 }