aboutsummaryrefslogtreecommitdiffstats
path: root/fw/table.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/table.h')
-rw-r--r--fw/table.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fw/table.h b/fw/table.h
index cba263d..a5cfb7b 100644
--- a/fw/table.h
+++ b/fw/table.h
@@ -22,7 +22,7 @@
enum {
TAB_KEY_SIZE = sizeof(U32),
- TAB_VAL_SIZE = sizeof(U32),
+ TAB_VAL_SIZE = sizeof(U16),
TAB_ROWS = 32,
TAB_ROW_SIZE = TAB_KEY_SIZE + TAB_VAL_SIZE,
TAB_SIZE = TAB_ROWS * TAB_ROW_SIZE,
@@ -33,12 +33,12 @@ typedef struct {
} Table;
// Set the key and value of row k.
-Status tabWrite(const Table *tab, U8 k, U16 key, U16 val);
+Status tabWrite(const Table *tab, U8 k, U32 key, U16 val);
// Read row k.
-Status tabRead(const Table *tab, U8 k, U16 *key, U16 *val);
+Status tabRead(const Table *tab, U8 k, U32 *key, U16 *val);
// Lookup the value associated with given key.
// If key falls between two rows, the value is interpolated
// from the two adjacent.
-Status tabLookup(const Table *tab, U16 key, U16 *val);
+Status tabLookup(const Table *tab, Number key, U16 *val);