Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7525

CC2541是怎么调用“static void simpleProfileChangeCB( uint8 paramID )”函数的?

$
0
0

现在找到不到static void simpleProfileChangeCB( uint8 paramID )是怎么调用的,找不到入口在哪里

static void simpleProfileChangeCB( uint8 paramID ) //simpleProfile特征值改变时的回调函数
{
uint8 newValue;

switch( paramID )
{
case SIMPLEPROFILE_CHAR1:
SimpleProfile_GetParameter( SIMPLEPROFILE_CHAR1, &newValue );

#if (defined HAL_LCD) && (HAL_LCD == TRUE)
HalLcdWriteStringValue( "Char 1:", (uint16)(newValue), 10, HAL_LCD_LINE_3 );
#endif // (defined HAL_LCD) && (HAL_LCD == TRUE)

break;

case SIMPLEPROFILE_CHAR3:
SimpleProfile_GetParameter( SIMPLEPROFILE_CHAR3, &newValue );

#if (defined HAL_LCD) && (HAL_LCD == TRUE)
HalLcdWriteStringValue( "Char 3:", (uint16)(newValue), 10, HAL_LCD_LINE_3 );
#endif // (defined HAL_LCD) && (HAL_LCD == TRUE)

break;

default:
// should not reach here!
break;
}
}


Viewing all articles
Browse latest Browse all 7525

Trending Articles