libx52
0.3.2
Saitek X52/X52Pro drivers for Linux/Unix
|
Functions, structures and enumerations for the Saitek X52 MFD & LED driver library. More...
Go to the source code of this file.
Typedefs | |
typedef struct libx52_device | libx52_device |
Device context structure used by libx52. More... | |
Functions | |
int | libx52_init (libx52_device **dev) |
Initialize the X52 library. More... | |
void | libx52_exit (libx52_device *dev) |
Exit the library and free up any resources used. More... | |
int | libx52_connect (libx52_device *dev) |
Connect to the X52 device. More... | |
int | libx52_disconnect (libx52_device *dev) |
Disconnect from the X52 device. More... | |
bool | libx52_is_connected (libx52_device *dev) |
Check if joystick is connected. More... | |
int | libx52_set_text (libx52_device *x52, uint8_t line, const char *text, uint8_t length) |
Set the text on an MFD line. More... | |
int | libx52_set_led_state (libx52_device *x52, libx52_led_id led, libx52_led_state state) |
Set the LED state. More... | |
int | libx52_set_clock (libx52_device *x52, time_t time, int local) |
Set the clock. More... | |
int | libx52_set_clock_timezone (libx52_device *x52, libx52_clock_id clock, int offset) |
Set the timezone for the secondary and tertiary clocks. More... | |
int | libx52_set_clock_format (libx52_device *x52, libx52_clock_id clock, libx52_clock_format format) |
Set whether the clock is displayed in 12 hour or 24 hour format. More... | |
int | libx52_set_time (libx52_device *x52, uint8_t hour, uint8_t minute) |
Set the hour and minute on clock 1. More... | |
int | libx52_set_date (libx52_device *x52, uint8_t dd, uint8_t mm, uint8_t yy) |
Set the date. More... | |
int | libx52_set_date_format (libx52_device *x52, libx52_date_format format) |
Set the date format for the MFD date display. More... | |
int | libx52_set_brightness (libx52_device *x52, uint8_t mfd, uint16_t brightness) |
Set the MFD or LED brightness. More... | |
int | libx52_set_shift (libx52_device *x52, uint8_t state) |
Set the state of the shift indicator. More... | |
int | libx52_set_blink (libx52_device *x52, uint8_t state) |
Set the blinking state. More... | |
int | libx52_update (libx52_device *x52) |
Update the X52. More... | |
int | libx52_vendor_command (libx52_device *x52, uint16_t index, uint16_t value) |
Write a raw vendor control packet. More... | |
int | libx52_check_feature (libx52_device *x52, libx52_feature feature) |
Check if the device supports the given feature. More... | |
const char * | libx52_strerror (libx52_error_code error) |
Return a string representation of the error code. More... | |
const char * | libx52_clock_id_to_str (libx52_clock_id id) |
Returns a string representation of the clock ID. More... | |
const char * | libx52_clock_format_to_str (libx52_clock_format format) |
Returns a string representation of the clock format. More... | |
const char * | libx52_date_format_to_str (libx52_date_format format) |
Returns a string representation of the date format. More... | |
const char * | libx52_led_id_to_str (libx52_led_id id) |
Returns a string representation of the LED. More... | |
const char * | libx52_led_state_to_str (libx52_led_state state) |
Returns a string representation of the LED state. More... | |
Functions, structures and enumerations for the Saitek X52 MFD & LED driver library.
This file contains the type, enum and function prototypes for the Saitek X52 driver library. These functions allow an application to connect to a supported X52/X52Pro joystick and control the MFD and LEDs.