gusucode.com > vnt工具箱matlab源码程序 > vnt/vnt/+can/ChannelInfo.m
classdef (Hidden) ChannelInfo < hgsetget % CHANNELINFO Retrieve channel specific CAN device information. % % The CHANNELINFO class contains information pertaining to a specific % channel on a CAN device. This information includes data needed to % access and use the channel. % % See also VNT. % % Authors: JDP % Copyright 2007-2008 The MathWorks, Inc. properties (GetAccess = 'public', SetAccess = 'private') % Device - The name of the device on which the channel exists. Device % DeviceChannelIndex - The numerical index of the channel on the % device. DeviceChannelIndex % DeviceSerialNumber - The vendor's identification code for the % device. DeviceSerialNumber % ObjectConstructor - The MATLAB constructor command required to % create a usable to the channel. ObjectConstructor end methods function obj = ChannelInfo(device, deviceChanIndex, deviceSerNum, objectConst) % CHANNELINFO Construct an object containing CAN channel information. % % OBJ = VENDORINFO(DEVICE, DEVICECHANINDEX, DEVICESERNUM, OBJECTCONST) % creates a CHANNELINFO object. % % Inputs: % DEVICE - Name of the device. % DEVICECHANINDEX - Index to a specific channel on the device. % DEVICESERNUM - Serial number of the device. % OBJECTCONST - Constructor call for the channel. % % Set the properties. obj.Device = device; obj.DeviceChannelIndex = deviceChanIndex; obj.DeviceSerialNumber = deviceSerNum; obj.ObjectConstructor = objectConst; end end end