KBDSetup

Syntax

#include <cafe/kbd.h>

KBDEc KBDSetup(                       
                KBDDevCallbackF attach_callback,    
                KBDDevCallbackF detach_callback,    
                KBDKeyCallbackF key_event_callback  
                );  

Parameters

attach_callback Pointer to user-implemented callback function for keyboard attach.
detach_callback Pointer to user-implemented callback function for keyboard detach.
key_event_callback Pointer to user-implemented callback function for keyboard input.

Return Values

KBDEc Keyboard error code.
If successful, the function returns KBD_SUCCESS.
If the library is already initialized, the function returns KBD_ERR_ALREADY_INITIALIZED.

Description

KBDSetup initializes the USB keyboard library:

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.

See Also

KBDDevCallbackF
KBDKeyCallbackF
KBDTeardown

Revision History

2013/06/20 Initial Version.


CONFIDENTIAL