Dynamixel/libbsserver_dyna/bsDynaMsgs.c
size_t BsDynaLookupMsgMaxLen( BsDynaMsgId_T eMsgId )
{
  if( (uint_t)eMsgId >= (uint_t)BsDynaMsgIdNumOf )
  {
    return (size_t)0;
  }
  else
  {
    return BsDynaMsgMaxLenLookupTbl[(uint_t)eMsgId];
  }
}
/*!
 * \brief 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.
 * 
 * \param eMsgId          Message Id.
 * 
 * \return
 * On success, returns the number of bytes.
 * On error, 0 is returned.
 */
\brief 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.

\param eMsgId          Message Id.

\return
On success, returns the number of bytes.
On error, 0 is returned.
\ brief 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 . \ param eMsgId Message Id . \ return On success returns the number of bytes . On error 0 is returned .
size_t BsDynaLookupMsgMaxLen( BsDynaMsgId_T eMsgId )
{
  if( (uint_t)eMsgId >= (uint_t)BsDynaMsgIdNumOf )
  {
    return (size_t)0;
  }
  else
  {
    return BsDynaMsgMaxLenLookupTbl[(uint_t)eMsgId];
  }
}
size_t BsDynaLookupMsgMaxLen ( BsDynaMsgId_T eMsgId ) { if ( ( uint_t ) eMsgId >= ( uint_t ) BsDynaMsgIdNumOf ) { return ( size_t ) 0 ; } else { return BsDynaMsgMaxLenLookupTbl [ ( uint_t ) eMsgId ] ; } }
\brief Look up the message maximum length associated with the message id.
\ brief Look up the message maximum length associated with the message id .