botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
bsI2CMsgs.c File Reference

BotSense bsProxy server - client raw I2C NetMsgs XML Definition. More...

#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/netmsgs.h"
#include "botsense/bsI2CMsgs.h"

Go to the source code of this file.

Macros

#define EOFDEF   {NULL, 0, NMFTypeNone, 0, }
 

Enumerations

enum  BsI2CReqReadFId_T {
  BsI2CReqReadFIdReserved = 0,
  BsI2CReqReadFIdaddr = 1,
  BsI2CReqReadFIdreadlen = 2,
  BsI2CReqReadFIdNumOf = 3
}
 
enum  BsI2CReqTransFId_T {
  BsI2CReqTransFIdReserved = 0,
  BsI2CReqTransFIdaddr = 1,
  BsI2CReqTransFIdwritebuf = 2,
  BsI2CReqTransFIdreadlen = 3,
  BsI2CReqTransFIdNumOf = 4
}
 
enum  BsI2CRspReadFId_T {
  BsI2CRspReadFIdReserved = 0,
  BsI2CRspReadFIdreadbuf = 1,
  BsI2CRspReadFIdNumOf = 2
}
 
enum  BsI2CReqWriteFId_T {
  BsI2CReqWriteFIdReserved = 0,
  BsI2CReqWriteFIdaddr = 1,
  BsI2CReqWriteFIdwritebuf = 2,
  BsI2CReqWriteFIdNumOf = 3
}
 
enum  BsI2CRspWriteFId_T {
  BsI2CRspWriteFIdReserved = 0,
  BsI2CRspWriteFIdbyteswritten = 1,
  BsI2CRspWriteFIdNumOf = 2
}
 
enum  BsI2CReqScanFId_T {
  BsI2CReqScanFIdReserved = 0,
  BsI2CReqScanFIdNumOf = 1
}
 
enum  BsI2CRspScanFId_T {
  BsI2CRspScanFIdReserved = 0,
  BsI2CRspScanFIdscan = 1,
  BsI2CRspScanFIdNumOf = 2
}
 

Functions

const NMMsgDef_T * BsI2CLookupMsgDef (BsI2CMsgId_T eMsgId)
 Look up the message definition associated with the message id. More...
 
size_t BsI2CLookupMsgMaxLen (BsI2CMsgId_T eMsgId)
 Look up the message maximum length associated with the message id. More...
 
int BsI2CPackMsg (BsI2CMsgId_T eMsgId, void *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a ITV message in big-endian byte order. More...
 
int BsI2CUnpackMsg (BsI2CMsgId_T eMsgId, byte_t buf[], size_t uMsgLen, void *pStruct, bool_t bTrace)
 Unpack a ITV message in big-endian byte order. More...
 

Variables

static const NMFieldDef_T BsI2CReqReadFieldDefs []
 
static const NMMsgDef_T BsI2CReqReadMsgDef
 
static const NMFieldDef_T BsI2CReqTranswritebufFieldDef []
 
static const NMFieldDef_T BsI2CReqTransFieldDefs []
 
static const NMMsgDef_T BsI2CReqTransMsgDef
 
static const NMFieldDef_T BsI2CRspReadreadbufFieldDef []
 
static const NMFieldDef_T BsI2CRspReadFieldDefs []
 
static const NMMsgDef_T BsI2CRspReadMsgDef
 
static const NMFieldDef_T BsI2CReqWritewritebufFieldDef []
 
static const NMFieldDef_T BsI2CReqWriteFieldDefs []
 
static const NMMsgDef_T BsI2CReqWriteMsgDef
 
static const NMFieldDef_T BsI2CRspWriteFieldDefs []
 
static const NMMsgDef_T BsI2CRspWriteMsgDef
 
static const NMFieldDef_T BsI2CReqScanFieldDefs []
 
static const NMMsgDef_T BsI2CReqScanMsgDef
 
static const NMFieldDef_T BsI2CRspScanscanFieldDef []
 
static const NMFieldDef_T BsI2CRspScanFieldDefs []
 
static const NMMsgDef_T BsI2CRspScanMsgDef
 
const NMMsgDef_T * BsI2CMsgDefLookupTbl []
 
size_t BsI2CMsgMaxLenLookupTbl []
 

Detailed Description

BotSense bsProxy server - client raw I2C NetMsgs XML Definition.

Warning
This file was auto-generated on 2018.08.10 13:54:23 from the NetMsgs XML specification bsI2CMsgs.xml.
Copyright:
(C) 2018. RoadNarrows LLC (http://www.roadnarrows.com) All Rights Reserved

Definition in file bsI2CMsgs.c.

Macro Definition Documentation

#define EOFDEF   {NULL, 0, NMFTypeNone, 0, }

End of Field Definition entry.

Definition at line 29 of file bsI2CMsgs.c.

Enumeration Type Documentation

BsI2CReqRead Field Id Enumeration

Enumerator
BsI2CReqReadFIdReserved 

reserved field id

BsI2CReqReadFIdaddr 

addr field id

BsI2CReqReadFIdreadlen 

readlen field id

BsI2CReqReadFIdNumOf 

number of fields

Definition at line 45 of file bsI2CMsgs.c.

46 {
47  BsI2CReqReadFIdReserved = 0, ///< reserved field id
48  BsI2CReqReadFIdaddr = 1, ///< addr field id
49  BsI2CReqReadFIdreadlen = 2, ///< readlen field id
50  BsI2CReqReadFIdNumOf = 3 ///< number of fields
BsI2CReqReadFId_T
Definition: bsI2CMsgs.c:45
readlen field id
Definition: bsI2CMsgs.c:49
number of fields
Definition: bsI2CMsgs.c:50
reserved field id
Definition: bsI2CMsgs.c:47
addr field id
Definition: bsI2CMsgs.c:48

BsI2CReqScan Field Id Enumeration

Enumerator
BsI2CReqScanFIdReserved 

reserved field id

BsI2CReqScanFIdNumOf 

number of fields

Definition at line 369 of file bsI2CMsgs.c.

370 {
371  BsI2CReqScanFIdReserved = 0, ///< reserved field id
372  BsI2CReqScanFIdNumOf = 1 ///< number of fields
BsI2CReqScanFId_T
Definition: bsI2CMsgs.c:369
number of fields
Definition: bsI2CMsgs.c:372
reserved field id
Definition: bsI2CMsgs.c:371

BsI2CReqTrans Field Id Enumeration

Enumerator
BsI2CReqTransFIdReserved 

reserved field id

BsI2CReqTransFIdaddr 

addr field id

BsI2CReqTransFIdwritebuf 

writebuf field id

BsI2CReqTransFIdreadlen 

readlen field id

BsI2CReqTransFIdNumOf 

number of fields

Definition at line 118 of file bsI2CMsgs.c.

119 {
120  BsI2CReqTransFIdReserved = 0, ///< reserved field id
121  BsI2CReqTransFIdaddr = 1, ///< addr field id
122  BsI2CReqTransFIdwritebuf = 2, ///< writebuf field id
123  BsI2CReqTransFIdreadlen = 3, ///< readlen field id
124  BsI2CReqTransFIdNumOf = 4 ///< number of fields
number of fields
Definition: bsI2CMsgs.c:124
BsI2CReqTransFId_T
Definition: bsI2CMsgs.c:118
readlen field id
Definition: bsI2CMsgs.c:123
reserved field id
Definition: bsI2CMsgs.c:120
addr field id
Definition: bsI2CMsgs.c:121
writebuf field id
Definition: bsI2CMsgs.c:122

BsI2CReqWrite Field Id Enumeration

Enumerator
BsI2CReqWriteFIdReserved 

reserved field id

BsI2CReqWriteFIdaddr 

addr field id

BsI2CReqWriteFIdwritebuf 

writebuf field id

BsI2CReqWriteFIdNumOf 

number of fields

Definition at line 268 of file bsI2CMsgs.c.

269 {
270  BsI2CReqWriteFIdReserved = 0, ///< reserved field id
271  BsI2CReqWriteFIdaddr = 1, ///< addr field id
272  BsI2CReqWriteFIdwritebuf = 2, ///< writebuf field id
273  BsI2CReqWriteFIdNumOf = 3 ///< number of fields
writebuf field id
Definition: bsI2CMsgs.c:272
reserved field id
Definition: bsI2CMsgs.c:270
addr field id
Definition: bsI2CMsgs.c:271
number of fields
Definition: bsI2CMsgs.c:273
BsI2CReqWriteFId_T
Definition: bsI2CMsgs.c:268

BsI2CRspRead Field Id Enumeration

Enumerator
BsI2CRspReadFIdReserved 

reserved field id

BsI2CRspReadFIdreadbuf 

readbuf field id

BsI2CRspReadFIdNumOf 

number of fields

Definition at line 204 of file bsI2CMsgs.c.

205 {
206  BsI2CRspReadFIdReserved = 0, ///< reserved field id
207  BsI2CRspReadFIdreadbuf = 1, ///< readbuf field id
208  BsI2CRspReadFIdNumOf = 2 ///< number of fields
BsI2CRspReadFId_T
Definition: bsI2CMsgs.c:204
readbuf field id
Definition: bsI2CMsgs.c:207
reserved field id
Definition: bsI2CMsgs.c:206
number of fields
Definition: bsI2CMsgs.c:208

BsI2CRspScan Field Id Enumeration

Enumerator
BsI2CRspScanFIdReserved 

reserved field id

BsI2CRspScanFIdscan 

scan field id

BsI2CRspScanFIdNumOf 

number of fields

Definition at line 420 of file bsI2CMsgs.c.

421 {
422  BsI2CRspScanFIdReserved = 0, ///< reserved field id
423  BsI2CRspScanFIdscan = 1, ///< scan field id
424  BsI2CRspScanFIdNumOf = 2 ///< number of fields
scan field id
Definition: bsI2CMsgs.c:423
reserved field id
Definition: bsI2CMsgs.c:422
BsI2CRspScanFId_T
Definition: bsI2CMsgs.c:420
number of fields
Definition: bsI2CMsgs.c:424

BsI2CRspWrite Field Id Enumeration

Enumerator
BsI2CRspWriteFIdReserved 

reserved field id

BsI2CRspWriteFIdbyteswritten 

byteswritten field id

BsI2CRspWriteFIdNumOf 

number of fields

Definition at line 325 of file bsI2CMsgs.c.

326 {
327  BsI2CRspWriteFIdReserved = 0, ///< reserved field id
328  BsI2CRspWriteFIdbyteswritten = 1, ///< byteswritten field id
329  BsI2CRspWriteFIdNumOf = 2 ///< number of fields
reserved field id
Definition: bsI2CMsgs.c:327
byteswritten field id
Definition: bsI2CMsgs.c:328
number of fields
Definition: bsI2CMsgs.c:329
BsI2CRspWriteFId_T
Definition: bsI2CMsgs.c:325

Function Documentation

const NMMsgDef_T* BsI2CLookupMsgDef ( BsI2CMsgId_T  eMsgId)

Look up the message definition associated with the message id.

Parameters
eMsgIdMessage Id.
Returns
On success, returns the pointer to the NMMsgDef_T. On error, NULL is returned.

Definition at line 509 of file bsI2CMsgs.c.

References BsI2CMsgDefLookupTbl, and BsI2CMsgIdNumOf.

Referenced by bsI2CGetMsgName(), BsI2CPackMsg(), and BsI2CUnpackMsg().

510 {
511  if( (uint_t)eMsgId >= (uint_t)BsI2CMsgIdNumOf )
512  {
513  return NULL;
514  }
515  else
516  {
517  return BsI2CMsgDefLookupTbl[(uint_t)eMsgId];
518  }
519 }
const NMMsgDef_T * BsI2CMsgDefLookupTbl[]
Definition: bsI2CMsgs.c:466
number of message ids
Definition: bsI2CMsgs.h:47
size_t BsI2CLookupMsgMaxLen ( BsI2CMsgId_T  eMsgId)

Look up the message maximum length associated with the message id.

The maximum length is the total number of packed bytes possible for the given message. The message may be much shorter.

Parameters
eMsgIdMessage Id.
Returns
On success, returns the number of bytes. On error, 0 is returned.

Definition at line 533 of file bsI2CMsgs.c.

References BsI2CMsgIdNumOf, and BsI2CMsgMaxLenLookupTbl.

534 {
535  if( (uint_t)eMsgId >= (uint_t)BsI2CMsgIdNumOf )
536  {
537  return (size_t)0;
538  }
539  else
540  {
541  return BsI2CMsgMaxLenLookupTbl[(uint_t)eMsgId];
542  }
543 }
number of message ids
Definition: bsI2CMsgs.h:47
size_t BsI2CMsgMaxLenLookupTbl[]
Definition: bsI2CMsgs.c:482
int BsI2CPackMsg ( BsI2CMsgId_T  eMsgId,
void *  pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a ITV message in big-endian byte order.

Parameters
eMsgIdMessage Id.
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 559 of file bsI2CMsgs.c.

References BsI2CLookupMsgDef().

Referenced by BsI2CPackReqRead(), BsI2CPackReqTrans(), BsI2CPackReqWrite(), BsI2CPackRspRead(), BsI2CPackRspScan(), and BsI2CPackRspWrite().

564 {
565  const NMMsgDef_T *pMsgDef;
566 
567  if( (pMsgDef = BsI2CLookupMsgDef(eMsgId)) == NULL )
568  {
569  LOGERROR("%s(ecode=%d): msgid=%u.",
570  nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
571  return -NM_ECODE_MSGID;
572  }
573 
574  if( bTrace )
575  {
576  return nmPackITVMsgDebug(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
577  }
578  else
579  {
580  return nmPackITVMsg(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
581  }
582 }
const NMMsgDef_T * BsI2CLookupMsgDef(BsI2CMsgId_T eMsgId)
Look up the message definition associated with the message id.
Definition: bsI2CMsgs.c:509
int BsI2CUnpackMsg ( BsI2CMsgId_T  eMsgId,
byte_t  buf[],
size_t  uMsgLen,
void *  pStruct,
bool_t  bTrace 
)

Unpack a ITV message in big-endian byte order.

Parameters
eMsgIdMessage Id.
[in]bufInput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 597 of file bsI2CMsgs.c.

References BsI2CLookupMsgDef().

Referenced by BsI2CUnpackReqRead(), BsI2CUnpackReqTrans(), BsI2CUnpackReqWrite(), BsI2CUnpackRspRead(), BsI2CUnpackRspScan(), and BsI2CUnpackRspWrite().

602 {
603  const NMMsgDef_T *pMsgDef;
604 
605  if( (pMsgDef = BsI2CLookupMsgDef(eMsgId)) == NULL )
606  {
607  LOGERROR("%s(ecode=%d): msgid=%u.",
608  nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
609  return -NM_ECODE_MSGID;
610  }
611 
612  if( bTrace )
613  {
614  return nmUnpackITVMsgDebug(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
615  }
616  else
617  {
618  return nmUnpackITVMsg(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
619  }
620 }
const NMMsgDef_T * BsI2CLookupMsgDef(BsI2CMsgId_T eMsgId)
Look up the message definition associated with the message id.
Definition: bsI2CMsgs.c:509

Variable Documentation

const NMMsgDef_T* BsI2CMsgDefLookupTbl[]
Initial value:
=
{
NULL,
NULL
}
static const NMMsgDef_T BsI2CReqReadMsgDef
Definition: bsI2CMsgs.c:84
static const NMMsgDef_T BsI2CReqWriteMsgDef
Definition: bsI2CMsgs.c:309
static const NMMsgDef_T BsI2CRspReadMsgDef
Definition: bsI2CMsgs.c:234
static const NMMsgDef_T BsI2CRspWriteMsgDef
Definition: bsI2CMsgs.c:353
static const NMMsgDef_T BsI2CReqScanMsgDef
Definition: bsI2CMsgs.c:386
static const NMMsgDef_T BsI2CReqTransMsgDef
Definition: bsI2CMsgs.c:170
static const NMMsgDef_T BsI2CRspScanMsgDef
Definition: bsI2CMsgs.c:450

BsI2C Message Definition Look-Up Table. Indexed by BsI2CMsgId_T enum.

Definition at line 466 of file bsI2CMsgs.c.

Referenced by BsI2CLookupMsgDef().

size_t BsI2CMsgMaxLenLookupTbl[]
Initial value:
=
{
(size_t)(0),
(size_t)(10),
(size_t)(269),
(size_t)(262),
(size_t)(266),
(size_t)(6),
(size_t)(3),
(size_t)(517),
(size_t)(0)
}

BsI2C Message Maximum Size Look-Up Table. Indexed by BsI2CMsgId_T enum.

Definition at line 482 of file bsI2CMsgs.c.

Referenced by BsI2CLookupMsgMaxLen().

const NMFieldDef_T BsI2CReqReadFieldDefs[]
static
Initial value:
=
{
{
.m_sFName = "addr",
.m_eFType = NMFTypeU16,
.m_uOffset = memberoffset(BsI2CReqRead_T, m_addr),
.m_this.m_u16.m_bits = (byte_t)(0),
.m_this.m_u16.m_valMin = (ushort_t)(0),
.m_this.m_u16.m_valMax = (ushort_t)(0),
.m_this.m_u16.m_valConst = (ushort_t)(0),
},
{
.m_sFName = "readlen",
.m_eFType = NMFTypeU8,
.m_uOffset = memberoffset(BsI2CReqRead_T, m_readlen),
.m_this.m_u8.m_bits = (byte_t)(NMBITS_HAS_MIN|NMBITS_HAS_MAX),
.m_this.m_u8.m_valMin = (byte_t)(1),
.m_this.m_u8.m_valMax = (byte_t)(NMFVAL_LEN_MAX_VECTOR),
.m_this.m_u8.m_valConst = (byte_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}
readlen field id
Definition: bsI2CMsgs.c:49
addr field id
Definition: bsI2CMsgs.c:48

BsI2CReqRead Field Definitions

Definition at line 56 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CReqReadMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CReqRead",
.m_eMsgId = BsI2CMsgIdReqRead,
.m_uCount = (size_t)(2),
.m_pFields = BsI2CReqReadFieldDefs
}
static const NMFieldDef_T BsI2CReqReadFieldDefs[]
Definition: bsI2CMsgs.c:56
ReqRead.
Definition: bsI2CMsgs.h:40

BsI2CReqRead Message Definition

Definition at line 84 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CReqScanFieldDefs[]
static
Initial value:
=
{
{NULL, 0, NMFTypeNone, 0, }
}

BsI2CReqScan Field Definitions

Definition at line 378 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CReqScanMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CReqScan",
.m_eMsgId = BsI2CMsgIdReqScan,
.m_uCount = (size_t)(0),
.m_pFields = BsI2CReqScanFieldDefs
}
static const NMFieldDef_T BsI2CReqScanFieldDefs[]
Definition: bsI2CMsgs.c:378
ReqScan.
Definition: bsI2CMsgs.h:45

BsI2CReqScan Message Definition

Definition at line 386 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CReqTransFieldDefs[]
static

BsI2CReqTrans Field Definitions

Definition at line 130 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CReqTransMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CReqTrans",
.m_eMsgId = BsI2CMsgIdReqTrans,
.m_uCount = (size_t)(3),
}
ReqTrans.
Definition: bsI2CMsgs.h:41
static const NMFieldDef_T BsI2CReqTransFieldDefs[]
Definition: bsI2CMsgs.c:130

BsI2CReqTrans Message Definition

Definition at line 170 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CReqTranswritebufFieldDef[]
static
Initial value:
=
{
{
.m_sFName = "writebuf",
.m_eFId = 0,
.m_eFType = NMFTypeU8,
.m_uOffset = (size_t)0,
.m_this.m_u8.m_bits = (byte_t)(0),
.m_this.m_u8.m_valMin = (byte_t)(0),
.m_this.m_u8.m_valMax = (byte_t)(0),
.m_this.m_u8.m_valConst = (byte_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}

BsI2CReqTranswritebuf Field Definitions

Definition at line 100 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CReqWriteFieldDefs[]
static
Initial value:
=
{
{
.m_sFName = "addr",
.m_eFType = NMFTypeU16,
.m_uOffset = memberoffset(BsI2CReqWrite_T, m_addr),
.m_this.m_u16.m_bits = (byte_t)(0),
.m_this.m_u16.m_valMin = (ushort_t)(0),
.m_this.m_u16.m_valMax = (ushort_t)(0),
.m_this.m_u16.m_valConst = (ushort_t)(0),
},
{
.m_sFName = "writebuf",
.m_eFType = NMFTypeVector,
.m_uOffset = memberoffset(BsI2CReqWrite_T, m_writebuf),
.m_this.m_vector.m_uMaxCount
.m_this.m_vector.m_uElemSize
= sizeof(byte_t),
.m_this.m_vector.m_pThisElem
},
{NULL, 0, NMFTypeNone, 0, }
}
writebuf field id
Definition: bsI2CMsgs.c:272
static const NMFieldDef_T BsI2CReqWritewritebufFieldDef[]
Definition: bsI2CMsgs.c:250
addr field id
Definition: bsI2CMsgs.c:271
#define BSI2C_REQWRITE_WRITEBUF_LEN
Definition: bsI2CMsgs.h:127

BsI2CReqWrite Field Definitions

Definition at line 279 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CReqWriteMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CReqWrite",
.m_eMsgId = BsI2CMsgIdReqWrite,
.m_uCount = (size_t)(2),
}
static const NMFieldDef_T BsI2CReqWriteFieldDefs[]
Definition: bsI2CMsgs.c:279
ReqWrite.
Definition: bsI2CMsgs.h:43

BsI2CReqWrite Message Definition

Definition at line 309 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CReqWritewritebufFieldDef[]
static
Initial value:
=
{
{
.m_sFName = "writebuf",
.m_eFId = 0,
.m_eFType = NMFTypeU8,
.m_uOffset = (size_t)0,
.m_this.m_u8.m_bits = (byte_t)(0),
.m_this.m_u8.m_valMin = (byte_t)(0),
.m_this.m_u8.m_valMax = (byte_t)(0),
.m_this.m_u8.m_valConst = (byte_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}

BsI2CReqWritewritebuf Field Definitions

Definition at line 250 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CRspReadFieldDefs[]
static
Initial value:
=
{
{
.m_sFName = "readbuf",
.m_eFType = NMFTypeVector,
.m_uOffset = memberoffset(BsI2CRspRead_T, m_readbuf),
.m_this.m_vector.m_uMaxCount
.m_this.m_vector.m_uElemSize
= sizeof(byte_t),
.m_this.m_vector.m_pThisElem
},
{NULL, 0, NMFTypeNone, 0, }
}
static const NMFieldDef_T BsI2CRspReadreadbufFieldDef[]
Definition: bsI2CMsgs.c:186
readbuf field id
Definition: bsI2CMsgs.c:207
#define BSI2C_RSPREAD_READBUF_LEN
Definition: bsI2CMsgs.h:102

BsI2CRspRead Field Definitions

Definition at line 214 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CRspReadMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CRspRead",
.m_eMsgId = BsI2CMsgIdRspRead,
.m_uCount = (size_t)(1),
.m_pFields = BsI2CRspReadFieldDefs
}
RspRead.
Definition: bsI2CMsgs.h:42
static const NMFieldDef_T BsI2CRspReadFieldDefs[]
Definition: bsI2CMsgs.c:214

BsI2CRspRead Message Definition

Definition at line 234 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CRspReadreadbufFieldDef[]
static
Initial value:
=
{
{
.m_sFName = "readbuf",
.m_eFId = 0,
.m_eFType = NMFTypeU8,
.m_uOffset = (size_t)0,
.m_this.m_u8.m_bits = (byte_t)(0),
.m_this.m_u8.m_valMin = (byte_t)(0),
.m_this.m_u8.m_valMax = (byte_t)(0),
.m_this.m_u8.m_valConst = (byte_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}

BsI2CRspReadreadbuf Field Definitions

Definition at line 186 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CRspScanFieldDefs[]
static
Initial value:
=
{
{
.m_sFName = "scan",
.m_eFType = NMFTypeVector,
.m_uOffset = memberoffset(BsI2CRspScan_T, m_scan),
.m_this.m_vector.m_uMaxCount
.m_this.m_vector.m_uElemSize
= sizeof(ushort_t),
.m_this.m_vector.m_pThisElem
},
{NULL, 0, NMFTypeNone, 0, }
}
#define BSI2C_RSPSCAN_SCAN_LEN
Definition: bsI2CMsgs.h:166
scan field id
Definition: bsI2CMsgs.c:423
static const NMFieldDef_T BsI2CRspScanscanFieldDef[]
Definition: bsI2CMsgs.c:402

BsI2CRspScan Field Definitions

Definition at line 430 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CRspScanMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CRspScan",
.m_eMsgId = BsI2CMsgIdRspScan,
.m_uCount = (size_t)(1),
.m_pFields = BsI2CRspScanFieldDefs
}
RspScan.
Definition: bsI2CMsgs.h:46
static const NMFieldDef_T BsI2CRspScanFieldDefs[]
Definition: bsI2CMsgs.c:430

BsI2CRspScan Message Definition

Definition at line 450 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CRspScanscanFieldDef[]
static
Initial value:
=
{
{
.m_sFName = "scan",
.m_eFId = 0,
.m_eFType = NMFTypeU16,
.m_uOffset = (size_t)0,
.m_this.m_u16.m_bits = (byte_t)(0),
.m_this.m_u16.m_valMin = (ushort_t)(0),
.m_this.m_u16.m_valMax = (ushort_t)(0),
.m_this.m_u16.m_valConst = (ushort_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}

BsI2CRspScanscan Field Definitions

Definition at line 402 of file bsI2CMsgs.c.

const NMFieldDef_T BsI2CRspWriteFieldDefs[]
static
Initial value:
=
{
{
.m_sFName = "byteswritten",
.m_eFType = NMFTypeU8,
.m_uOffset = memberoffset(BsI2CRspWrite_T, m_byteswritten),
.m_this.m_u8.m_bits = (byte_t)(0),
.m_this.m_u8.m_valMin = (byte_t)(0),
.m_this.m_u8.m_valMax = (byte_t)(0),
.m_this.m_u8.m_valConst = (byte_t)(0),
},
{NULL, 0, NMFTypeNone, 0, }
}
byteswritten field id
Definition: bsI2CMsgs.c:328

BsI2CRspWrite Field Definitions

Definition at line 335 of file bsI2CMsgs.c.

const NMMsgDef_T BsI2CRspWriteMsgDef
static
Initial value:
=
{
.m_sMsgName = "BsI2CRspWrite",
.m_eMsgId = BsI2CMsgIdRspWrite,
.m_uCount = (size_t)(1),
}
static const NMFieldDef_T BsI2CRspWriteFieldDefs[]
Definition: bsI2CMsgs.c:335
RspWrite.
Definition: bsI2CMsgs.h:44

BsI2CRspWrite Message Definition

Definition at line 353 of file bsI2CMsgs.c.