typedef enum { VM_DCL_KBD_COMMAND_CONFIG_PIN = 0xC0D } VM_DCL_KBD_COMMAND;
typedef enum { VM_DCL_KBD_COMMAND_CONFIG_PIN = 0xC0D } VM_DCL_KBD_COMMAND;
This enum defines the control command for kbd module and is used in vm_dcl_control as a parameter. With different commands, users can control the different functions of the keyboard. To control the keyboard, you can use the DCL(Driver Common Layer) APIs.
#include "vm_dcl.h" VM_DCL_HANDLE kbd_handle; // Declares a VM_DCL_HANDLE variable. vm_dcl_kbd_control_pin_t kbdmap; kbd_handle = vm_dcl_open(VM_DCL_KBD,0); // Calls vm_dcl_open to get a handle. The second parameter should always be 0. kbdmap.colmap = 0x01; kbdmap.rowmap = 0x01; vm_dcl_control(kbd_handle,VM_DCL_KBD_COMMAND_CONFIG_PIN,(void *)(&kbdmap)); // Calls vm_dcl_control to set the column and row. vm_dcl_close(kbd_handle); // Calls vm_dcl_close to close the handle.
vmdcl_kbd.h
|
Members |
Description |
|
VM_DCL_KBD_COMMAND_CONFIG_PIN = 0xC0D |
Controls the keyboard row and column. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.