
BaseJpegDeocde exampe program
Dependencies: BaseJpegDecode Terminal BaseUsbHost mbed mbed-rtos
Fork of BaseJpegDecode by
Diff: BitPattern.h
- Revision:
- 2:697ebeb8336f
- Parent:
- 1:58dfd5386a92
- Child:
- 3:2709bbf8baae
--- a/BitPattern.h Mon Oct 08 11:38:57 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#ifndef BIT_PATTERN_H -#define BIT_PATTERN_H -#include "mbed.h" - -class BitPattern { -public: - BitPattern(); - BitPattern(uint32_t value, int size); - BitPattern(const char* s); - void clear(); - void operator +=(uint8_t c); - int operator [](int index); - void put(uint32_t value, int size = 8); - uint32_t peek(int size = 8); - uint32_t get(int size = 8); - int size(); - bool match(BitPattern& b); - bool match(const char* s); - void operator =(const char* s); - void operator +=(const char* s); - bool operator ==(BitPattern& b); -private: - uint32_t m_pat; - int m_size; -}; -#endif // BIT_PATTERN_H