Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Hardwares/OV7725RegBuf.h@12:256c303ad09d, 2017-02-08 (annotated)
- Committer:
- hazheng
- Date:
- Wed Feb 08 18:00:33 2017 +0000
- Revision:
- 12:256c303ad09d
- Child:
- 13:7dcb1642ef99
Finished OV7725 register buffer class, and its addres definitions.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 12:256c303ad09d | 1 | #pragma once |
hazheng | 12:256c303ad09d | 2 | #ifndef OV7725_REG_BUF_H |
hazheng | 12:256c303ad09d | 3 | #define OV7725_REG_BUF_H |
hazheng | 12:256c303ad09d | 4 | |
hazheng | 12:256c303ad09d | 5 | #include <mbed.h> |
hazheng | 12:256c303ad09d | 6 | #include "OV7725RegAddr.h" |
hazheng | 12:256c303ad09d | 7 | |
hazheng | 12:256c303ad09d | 8 | class OV7725RegBuf |
hazheng | 12:256c303ad09d | 9 | { |
hazheng | 12:256c303ad09d | 10 | public: |
hazheng | 12:256c303ad09d | 11 | OV7725RegBuf(); |
hazheng | 12:256c303ad09d | 12 | ~OV7725RegBuf(); |
hazheng | 12:256c303ad09d | 13 | |
hazheng | 12:256c303ad09d | 14 | uint8_t * GetData(); |
hazheng | 12:256c303ad09d | 15 | |
hazheng | 12:256c303ad09d | 16 | bool IsAddressReserved(const uint8_t addr) const; |
hazheng | 12:256c303ad09d | 17 | |
hazheng | 12:256c303ad09d | 18 | private: |
hazheng | 12:256c303ad09d | 19 | uint8_t m_data[OV7725_LAST_ADDR + 1]; |
hazheng | 12:256c303ad09d | 20 | }; |
hazheng | 12:256c303ad09d | 21 | |
hazheng | 12:256c303ad09d | 22 | #endif //OV7725_REG_BUF_H |