各位大佬好!
CH559用SETorOFFNumLock 可以关闭键盘的Num Lock灯,请问点亮键盘的Num Lock灯要如何操作呢?
UINT8 SETorOFFNumLock(PUINT8 buf)//NumLock的点灯判断
{
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 = HostCtrlTransfer( TxBuffer, &len ); // 执行控制传输
if ( s != ERR_SUCCESS )
return( s );
}
return( ERR_SUCCESS );
}