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