43 #include <hidapi/hidapi.h> 46 #define HID_AUXD_ASCII_CHARSET 0x80 47 #define HID_AUXD_DATAREAD_BACK 0x40 48 #define HID_AUXD_FONTREAD_BACK 0x20 51 #define HID_AUXD_CLEAR 0x80 52 #define HID_AUXD_ENABLE 0x40 53 #define HID_AUXD_SSENABLE 0x20 54 #define HID_AUXD_VSCROLL 0x10 55 #define HID_AUXD_HSCROLL 0x08 56 #define HID_AUXD_DISABLE 0x0 59 #define HID_ADCC_PIXELPOS 0x80 60 #define HID_ADCC_INCREMENT 0x40 61 #define HID_ADCC_ENABLE 0x20 62 #define HID_ADCC_BLINK 0x10 118 HID_API_EXPORT hid_device * HID_API_CALL
hidlcd_open(
unsigned short vendor_id,
unsigned short product_id,
const wchar_t *serial_number);
126 void HID_API_EXPORT HID_API_CALL
hidlcd_close(hid_device *dev);
153 int HID_API_EXPORT HID_API_CALL
hidlcd_set_cursor(hid_device *dev, u_int8_t row, u_int8_t col);
175 int HID_API_EXPORT HID_API_CALL
hidlcd_print(hid_device *dev,
188 int HID_API_EXPORT HID_API_CALL
hidlcd_send_command_ext(hid_device *dev, u_int8_t command, HID_ADCMD_MODE mode);
Cursor position report.
Definition: hidlcd.h:69
Control report.
Definition: hidlcd.h:72
u_int8_t chrw
character width (HID usage 0x3d)
Definition: hidlcd.h:95
Cursor flags.
Definition: hidlcd.h:73
int HID_API_EXPORT HID_API_CALL hidlcd_init(void)
Initialize the HIDLCD library.
HIDDisplayParams *HID_API_EXPORT HID_API_CALL hidlcd_get_display_params(hid_device *dev)
Returns the physical parameters of the connected auxiliary LCD display.
HID_AUXD_REPORT
Supported HID reports for HID LCD Display.
Definition: hidlcd.h:67
int HID_API_EXPORT HID_API_CALL hidlcd_exit(void)
Closes the HIDLCD library and releases associated resources.
Clear the command/state.
Definition: hidlcd.h:82
HID_API_EXPORT hid_device *HID_API_CALL hidlcd_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
Returns the device handle.
int HID_API_EXPORT HID_API_CALL hidlcd_set_cursor(hid_device *dev, u_int8_t row, u_int8_t col)
This function sets the cursor of the LCD display in the specified position.
int HID_API_EXPORT HID_API_CALL hidlcd_set_cursor_flags_ext(hid_device *dev, u_int8_t flags, HID_ADCMD_MODE mode)
This function sets the cursor extended parameters and display mode.
u_int8_t cols
nuber of columns (HID usage 0x36)
Definition: hidlcd.h:94
int HID_API_EXPORT HID_API_CALL hidlcd_print(hid_device *dev, HIDDisplayParams *display_params, const char *string)
Prints the text on the LCD screen.
u_int8_t flags
display capabilities bitmap. 0x21|0x22|0x29|5 unused
Definition: hidlcd.h:97
u_int8_t rows
number of rows (HID usage 0x35)
Definition: hidlcd.h:93
int HID_API_EXPORT HID_API_CALL hidlcd_send_command_ext(hid_device *dev, u_int8_t command, HID_ADCMD_MODE mode)
Sends the command to the LCD display with mode.
HID_ADCMD_MODE
Modes of setting the command flags to the LCD display.
Definition: hidlcd.h:80
Character report.
Definition: hidlcd.h:70
u_int8_t chrh
character height (HID usage 0x3e)
Definition: hidlcd.h:96
void HID_API_EXPORT HID_API_CALL hidlcd_close(hid_device *dev)
Closes the device handle and releases associated resources.
Display parameters report.
Definition: hidlcd.h:68
Command flags are added to the existing state of screen.
Definition: hidlcd.h:81
int HID_API_EXPORT HID_API_CALL hidlcd_send_command(hid_device *dev, u_int8_t command)
Sends the command to the LCD display.
The structure holding the physical parameters and other capabilities of the LCD display.
Definition: hidlcd.h:91
Font report.
Definition: hidlcd.h:71
Ovewrite the state of the screen.
Definition: hidlcd.h:83