summaryrefslogtreecommitdiff
path: root/board/keyborg/encode.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/keyborg/encode.h')
-rw-r--r--board/keyborg/encode.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/board/keyborg/encode.h b/board/keyborg/encode.h
new file mode 100644
index 0000000000..b743c388d4
--- /dev/null
+++ b/board/keyborg/encode.h
@@ -0,0 +1,20 @@
+/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Touch data encoding/decoding */
+
+#ifndef __KEYBORG_ENCODE_H
+#define __KEYBORG_ENCODE_H
+
+/* Start encoding a new frame */
+void encode_reset(void);
+
+/* Encode a single column */
+void encode_add_column(const uint8_t *dptr);
+
+/* Decode and print the encoded frame to console */
+void encode_dump_matrix(void);
+
+#endif /* __KEYBORG_ENCODE_H */