device/valio/keyboard.h header reference
[Valio device attributes module]

The source code of this header can be browsed online.

Description  

Value IO interface for a keyboard

Members  

Type  

Functions  

Members detail  

#define LIBDEVICE_VALIO_KEYBOARD_H_  

This macro is declared in device/valio/keyboard.h source file, line 27.

bool_t dev_valio_keyboard_key_get(const uint8_t *bits, uint8_t column_count, uint8_t column, uint8_t row)  

This function is declared in device/valio/keyboard.h source file, line 62.

this function is an helper function to retrieve a given key state from an array of bytes.

void dev_valio_keyboard_key_set(uint8_t *bits, uint8_t column_count, uint8_t column, uint8_t row, bool_t value)  

This function is declared in device/valio/keyboard.h source file, line 76.

this function is an helper function to set a given key state in an array of bytes.

enum valio_keyboard_att_e  

This enum is declared in device/valio/keyboard.h source file, line 33.

IdentifierDescription
VALIO_KEYBOARD_MAPValue for this attribute is an array of bytes where bits are set to 1 for each pressed key.
Bits are used from LSB to MSB, from lower address to upper. Bits are used in groups of columns, column per column, all rows in order.
For instance, for a 3 column per 3 lines keyboard, bits will be, with B(Col, Row):
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Byte 0 B(0,0) B(1,0) B(2,0) B(0,1) B(1,1) B(2,1) B(0,2) B(1,2) Byte 1 B(2,2) Padding...
Requester should allocate enough bytes to store the whole array.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc