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: mbed
pat9125_mbed/pat9125_mbed.h@15:089f1d28d152, 2017-10-20 (annotated)
- Committer:
- pixus_mbed
- Date:
- Fri Oct 20 10:58:39 2017 +0000
- Revision:
- 15:089f1d28d152
- Parent:
- 0:411244c71423
1. Separate LCD and UART mode.; 2. Configure BTN with default pull-up.; 3. NULL handle.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pixus_mbed | 0:411244c71423 | 1 | #ifndef PAT9125_MBED_H |
| pixus_mbed | 0:411244c71423 | 2 | #define PAT9125_MBED_H |
| pixus_mbed | 15:089f1d28d152 | 3 | #include <stdint.h> |
| pixus_mbed | 15:089f1d28d152 | 4 | #include <stddef.h> |
| pixus_mbed | 0:411244c71423 | 5 | #include "mbed.h" |
| pixus_mbed | 0:411244c71423 | 6 | #include "pat9125_i2c.h" |
| pixus_mbed | 0:411244c71423 | 7 | #include "pixart_lcm.h" |
| pixus_mbed | 0:411244c71423 | 8 | |
| pixus_mbed | 0:411244c71423 | 9 | typedef uint8_t boolean; |
| pixus_mbed | 0:411244c71423 | 10 | typedef struct |
| pixus_mbed | 0:411244c71423 | 11 | { |
| pixus_mbed | 0:411244c71423 | 12 | pat9125_i2c *p_i2c; |
| pixus_mbed | 0:411244c71423 | 13 | Serial *p_pc ; |
| pixus_mbed | 0:411244c71423 | 14 | DigitalIn *pBTN_L ; |
| pixus_mbed | 0:411244c71423 | 15 | DigitalIn *pBTN_R ; |
| pixus_mbed | 0:411244c71423 | 16 | InterruptIn *pINT ; |
| pixus_mbed | 0:411244c71423 | 17 | DigitalOut *pRLED ; |
| pixus_mbed | 0:411244c71423 | 18 | DigitalOut *pGLED ; |
| pixus_mbed | 0:411244c71423 | 19 | pixart_lcm *pLCM ; |
| pixus_mbed | 0:411244c71423 | 20 | uint8_t slave_id ; |
| pixus_mbed | 0:411244c71423 | 21 | boolean sen_status ; |
| pixus_mbed | 0:411244c71423 | 22 | } pat9125_mbed_state_s; |
| pixus_mbed | 0:411244c71423 | 23 | |
| pixus_mbed | 0:411244c71423 | 24 | class pat9125_mbed |
| pixus_mbed | 0:411244c71423 | 25 | { |
| pixus_mbed | 0:411244c71423 | 26 | public: |
| pixus_mbed | 0:411244c71423 | 27 | pat9125_mbed(pat9125_mbed_state_s *state) ; |
| pixus_mbed | 0:411244c71423 | 28 | void task() ; |
| pixus_mbed | 0:411244c71423 | 29 | }; |
| pixus_mbed | 0:411244c71423 | 30 | |
| pixus_mbed | 0:411244c71423 | 31 | #endif |
PAT9125EL - Miniature Optical Navigation for Surface Tracking