diff --git a/src/hidpp10.c b/src/hidpp10.c index aa8312d6..1d345a31 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -194,10 +194,6 @@ out_err: /* HID++ 1.0 commands 10 */ /* -------------------------------------------------------------------------- */ -static int -hidpp10_read_memory(struct hidpp10_device *dev, uint8_t page, uint8_t offset, - uint8_t bytes[16]); - static inline void hidpp10_dump_all_pages(struct hidpp10_device *dev); @@ -1003,7 +999,7 @@ hidpp10_set_usb_refresh_rate(struct hidpp10_device *dev, } /* -------------------------------------------------------------------------- */ -/* 0xA2: Reading memory */ +/* 0xA2: Read Sector */ /* -------------------------------------------------------------------------- */ #define __CMD_READ_MEMORY 0xA2 @@ -1017,7 +1013,7 @@ hidpp10_set_usb_refresh_rate(struct hidpp10_device *dev, } \ } -static int +int hidpp10_read_memory(struct hidpp10_device *dev, uint8_t page, uint8_t offset, uint8_t bytes[16]) { diff --git a/src/hidpp10.h b/src/hidpp10.h index 7770abe5..03730ecf 100644 --- a/src/hidpp10.h +++ b/src/hidpp10.h @@ -294,6 +294,16 @@ int hidpp10_set_usb_refresh_rate(struct hidpp10_device *dev, uint16_t rate); +/* -------------------------------------------------------------------------- */ +/* 0xA2: Read Sector */ +/* -------------------------------------------------------------------------- */ + +int +hidpp10_read_memory(struct hidpp10_device *dev, + uint8_t page, + uint8_t offset, + uint8_t bytes[16]); + /* -------------------------------------------------------------------------- */ /* 0xB5: Pairing Information */ /* -------------------------------------------------------------------------- */