KBDLedEvent

Syntax

#include <cafe/kbd.h>

typedef struct _KBDLedEvent
{

    KBDChannel  channel;
    KBDLedState leds;
    KBDEc       rc;

} KBDLedEvent;

Elements

channel Keyboard channel.
leds LED state.
rc Return code.

Description

The KBDLedEvent structure contains the keyboard channel, LED state, and a return code from the callback associated with KBDSetLedsAsync.

When the KBDSetLedsAsync function completes, it calls the callback that was passed to it with a pointer to this structure, as well as a pointer to the user-supplied argument.

The rc returned in the callback is either KBD_SUCCESS or KBD_ERR_BUSY. The return code KBD_SUCCESS indicates that the LED command was successfully sent to the keyboard. KBD_ERR_BUSY means that transmission of the command failed.

See Also

KBDSetLedsAsync

Revision History

2013/05/08 Automated cleanup pass.
2011/12/21 Moved to Cafe.
2007/03/20 Initial version.


CONFIDENTIAL