25 import NetMsgs.NetMsgsBase
as nmBase
26 from NetMsgs.NetMsgsLibITV
import NetMsgsITV
29 NMFVAL_LEN_MAX_VECTOR = nmBase.NMVectorMaxCount
37 """ BsSerial Message Id Enumeration class. """ 54 BsSerialMsgDefReqOpenArgs = {
56 {
'fid':1,
'ftype':
'I',
'max_count':1,
'name':
'baudrate', },
57 {
'fid':2,
'ftype':
'B',
'max_count':1,
'name':
'bytesize', },
58 {
'fid':3,
'ftype':
'c',
'max_count':1,
'name':
'parity', },
59 {
'fid':4,
'ftype':
'B',
'max_count':1,
'name':
'stopbits', },
60 {
'fid':5,
'ftype':
'?',
'max_count':1,
'name':
'rtscts', },
61 {
'fid':6,
'ftype':
'?',
'max_count':1,
'name':
'xonxoff', },
65 'msgid': BsSerialMsgId.ReqOpenArgs,
66 'name':
'ReqOpenArgs',
71 BsSerialMsgDefReqRead = {
76 'max': NMFVAL_LEN_MAX_VECTOR,
84 'msgid': BsSerialMsgId.ReqRead,
90 BsSerialMsgDefReqTrans = {
95 'max_count': nmBase.NMVectorMaxCount,
98 'fid': nmBase.NMFIdNone,
101 'name':
'writebuf_item',
107 'max': NMFVAL_LEN_MAX_VECTOR,
115 'msgid': BsSerialMsgId.ReqTrans,
121 BsSerialMsgDefRspRead = {
126 'max_count': nmBase.NMVectorMaxCount,
129 'fid': nmBase.NMFIdNone,
132 'name':
'readbuf_item',
138 'msgid': BsSerialMsgId.RspRead,
144 BsSerialMsgDefReqWrite = {
149 'max_count': nmBase.NMVectorMaxCount,
152 'fid': nmBase.NMFIdNone,
155 'name':
'writebuf_item',
161 'msgid': BsSerialMsgId.ReqWrite,
167 BsSerialMsgDefRspWrite = {
169 {
'fid':1,
'ftype':
'B',
'max_count':1,
'name':
'byteswritten', },
173 'msgid': BsSerialMsgId.RspWrite,
179 BsSerialSetMsgDef = {
180 BsSerialMsgId.ReqOpenArgs: BsSerialMsgDefReqOpenArgs,
181 BsSerialMsgId.ReqRead: BsSerialMsgDefReqRead,
182 BsSerialMsgId.ReqTrans: BsSerialMsgDefReqTrans,
183 BsSerialMsgId.ReqWrite: BsSerialMsgDefReqWrite,
184 BsSerialMsgId.RspRead: BsSerialMsgDefRspRead,
185 BsSerialMsgId.RspWrite: BsSerialMsgDefRspWrite,
195 """ BsSerial NetMsgs Class. """ 199 """ BsSerial NetMsgs initialization. """ 200 kwargs[
'msgsetname'] =
'BsSerialMsgSet' 201 NetMsgsITV.__init__(self, BsSerialSetMsgDef, **kwargs)
def __init__(self, kwargs)