DRC03392_RcvSET_ProgramDRC
微毫度十分个扩大飞机公婆 该用户已被删除
|
DRC03392_RcvSET_ProgramDRC
#if defined( DRC03392_OPTIONALS )
/*********************************************************************
* @fn DRC03392_RcvSET_ProgramDRC
*
* @brief Processes a SET for the Program command.
*
* @param endPoint - Intended endpoint
* @param Attrib - ProgramDRC_Override, ProgramDRC_Auto
* or ProgramDRC_FactoryDefault.
*
* @return Transaction Codes:
* TRANSCODE_OK, error or application code
*/
byte DRC03392_RcvSET_ProgramDRC( byte endPoint,
uint16 AttribId )
{
// Put code to process this command HERE.
#ifdef WIN32
WPRINTSTR( "RcvSET_ProgramDRC - TBA" );
#endif
/* Set everything unactivated */
saved_ProgramDRC_Override = FALSE;
saved_ProgramDRC_Auto = FALSE;
saved_ProgramDRC_FactoryDefault = FALSE;
switch (AttribId)
{
case ProgramDRC_Override:
// Do something
saved_ProgramDRC_Override = TRUE;
break;
case ProgramDRC_Auto:
// Do something
saved_ProgramDRC_Auto = TRUE;
break;
case ProgramDRC_FactoryDefault:
// Do Something
saved_ProgramDRC_FactoryDefault = TRUE;
break;
default:
return ( ERRORCODE_UNSUPPORTED_ATTRIB );
break;
}
return ( ERRORCODE_SUCCESS );
}
#endif
小弟看这段代码,看了半天没看明白,斑竹可以给详细解释一下吗?? |
|
|
|
|
|
- UID
- 104631
- 性别
- 男
|
我对DRC这个例子程序也不熟,大致看应该是对某个属性设置一下,然后进行相应的处理 |
|
|
|
|
|