This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2016-06-06 04:00:33 +00:00
|
|
|
#ifndef ROWSCANNERINTERFACE_H
|
|
|
|
#define ROWSCANNERINTERFACE_H
|
|
|
|
|
|
|
|
/* RowScannerInterface is an interface class.
|
|
|
|
Sets rowEnd and returns rowState.
|
|
|
|
rowEnd is bitwise, where 1 bit corrsiponds to place immediatly after last key of row.
|
|
|
|
rowEnd and rowMask are larger type than portMask so that they can not overflow.
|
|
|
|
*/
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
class RowScannerInterface
|
|
|
|
{
|
|
|
|
public:
|
2016-06-06 06:52:14 +00:00
|
|
|
virtual uint8_t scan(uint16_t& rowEnd)=0;
|
2016-06-06 04:00:33 +00:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|