KBDSetLedsAsync DEPRECATED

Syntax

#include <cafe/kbd.h>

typedef void (*KBDLedCallbackF) (KBDLedEvent* lev, void *cbArg);

KBDEc KBDSetLedsAsync (KBDChannel ch, KBDLedState leds, KBDLedCallbackF fn, void *cbArg);

Parameters

ch Keyboard channel to set.
leds New KBDLedState to send to the keyboard.
fn Callback function pointer to call when command completes.
cbArg Argument for callback function called when command completes.

Return Values

KBDEc Keyboard error code.
KBD_SUCCESS if the call was successful.
KBD_ERR_NOT_INITIALIZED if the library was not initialized.
KBD_ERR_BAD_VALUE if ch or leds is out of range.
KBD_ERR_BUSY if unable to send an LED command to the keyboard.

Description

This function has been deprecated. The KBD RPL now sets LEDs automatically per key entry. For LED settings, call KBDSetLedsAsyncEx.

Do Not Call From

Deprecated Do not call this function in new code.
Background Do not call this function from the background.

See Also

KBDSetLedsAsyncEx
KBDSetLedsEx
KBDSetLedsRetryEx

Revision History

2013-06-20 Deprecated.
2013-05-08 Automated cleanup pass.
2011-12-21 Moved to Cafe.
2007-03-19 Initial version.


CONFIDENTIAL