?各位大佬好!?
? ? ? CH559用SETorOFFNumLock 可以關(guān)閉鍵盤的Num Lock燈,請(qǐng)問點(diǎn)亮鍵盤的Num Lock燈要如何操作呢?
UINT8 SETorOFFNumLock(PUINT8 buf)//NumLock的點(diǎn)燈判斷
{
? ? UINT8 tmp[]={0x21,0x09,0x00,0x02,0x00,0x00,0x01,0x00};
? ? UINT8 len,s;
? ? if((buf[2]==0x53)&(buf[0]|buf[1]|buf[3]|buf[4]|buf[5]|buf[6]|buf[7]==0))
? ? {
? ? for ( s = 0; s != sizeof( tmp ); s ++ )?
{
? ?((PUINT8X)pSetupReq)[ s ] = tmp[s];
? ? }
? ? ? ? s = HostCtrlTransfer( TxBuffer, &len );? // 執(zhí)行控制傳輸
? ? if ( s != ERR_SUCCESS )?
? return( s );? ??
? ? }
return( ERR_SUCCESS );
}