ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
firmware.h
Go to the documentation of this file.
1 #ifndef FIRMWARE_H
2 #define FIRMWARE_H
3 
4 #include "includes.h"
5 
6 // Gets firmware version and poll rate from device. Returns 0 on success.
7 int getfwversion(usbdevice* kb);
8 
9 // Updates firmware with data at the specified path. Prints notifications on success/failure.
10 // Returns 0 if the device is ok or -1 if it needs to be removed.
11 int cmd_fwupdate(usbdevice* kb, usbmode* dummy1, int nnumber, int dummy2, const char* path);
12 
13 #endif // FIRMWARE_H
int cmd_fwupdate(usbdevice *kb, usbmode *dummy1, int nnumber, int dummy2, const char *path)
Definition: firmware.c:154
int getfwversion(usbdevice *kb)
Definition: firmware.c:11