hidpp10: make hidpp10_read_memory public

We have documentation for that, it does what it's already doing. It's called
sector + entry in the doc, but leave it at page + offset since we've been
using this in other comments.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-10-15 11:00:25 +10:00
parent a83edffdbe
commit 05cd108059
2 changed files with 12 additions and 6 deletions

View File

@@ -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])
{

View File

@@ -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 */
/* -------------------------------------------------------------------------- */