25 import NetMsgs.NetMsgsBase
as nmBase
26 from NetMsgs.NetMsgsLibITV
import NetMsgsITV
29 NMFVAL_LEN_MAX_VECTOR = nmBase.NMVectorMaxCount
37 """ BsI2C Message Id Enumeration class. """ 55 BsI2CMsgDefReqRead = {
57 {
'fid':1,
'ftype':
'H',
'max_count':1,
'name':
'addr', },
61 'max': NMFVAL_LEN_MAX_VECTOR,
69 'msgid': BsI2CMsgId.ReqRead,
75 BsI2CMsgDefReqTrans = {
77 {
'fid':1,
'ftype':
'H',
'max_count':1,
'name':
'addr', },
81 'max_count': nmBase.NMVectorMaxCount,
84 'fid': nmBase.NMFIdNone,
87 'name':
'writebuf_item',
93 'max': NMFVAL_LEN_MAX_VECTOR,
101 'msgid': BsI2CMsgId.ReqTrans,
107 BsI2CMsgDefRspRead = {
112 'max_count': nmBase.NMVectorMaxCount,
115 'fid': nmBase.NMFIdNone,
118 'name':
'readbuf_item',
124 'msgid': BsI2CMsgId.RspRead,
130 BsI2CMsgDefReqWrite = {
132 {
'fid':1,
'ftype':
'H',
'max_count':1,
'name':
'addr', },
136 'max_count': nmBase.NMVectorMaxCount,
139 'fid': nmBase.NMFIdNone,
142 'name':
'writebuf_item',
148 'msgid': BsI2CMsgId.ReqWrite,
154 BsI2CMsgDefRspWrite = {
156 {
'fid':1,
'ftype':
'B',
'max_count':1,
'name':
'byteswritten', },
160 'msgid': BsI2CMsgId.RspWrite,
166 BsI2CMsgDefReqScan = {
170 'msgid': BsI2CMsgId.ReqScan,
176 BsI2CMsgDefRspScan = {
181 'max_count': nmBase.NMVectorMaxCount,
184 'fid': nmBase.NMFIdNone,
193 'msgid': BsI2CMsgId.RspScan,
200 BsI2CMsgId.ReqRead: BsI2CMsgDefReqRead,
201 BsI2CMsgId.ReqScan: BsI2CMsgDefReqScan,
202 BsI2CMsgId.ReqTrans: BsI2CMsgDefReqTrans,
203 BsI2CMsgId.ReqWrite: BsI2CMsgDefReqWrite,
204 BsI2CMsgId.RspRead: BsI2CMsgDefRspRead,
205 BsI2CMsgId.RspScan: BsI2CMsgDefRspScan,
206 BsI2CMsgId.RspWrite: BsI2CMsgDefRspWrite,
216 """ BsI2C NetMsgs Class. """ 220 """ BsI2C NetMsgs initialization. """ 221 kwargs[
'msgsetname'] =
'BsI2CMsgSet' 222 NetMsgsITV.__init__(self, BsI2CSetMsgDef, **kwargs)
def __init__(self, kwargs)