譯文 張
/
7_7Boboobooo
123
Fork of Boboobooo by
camera_api.h@12:a3cee7619b77, 2014-07-10 (annotated)
- Committer:
- even
- Date:
- Thu Jul 10 10:22:14 2014 +0000
- Revision:
- 12:a3cee7619b77
- Parent:
- 3:c5f2281b3ed2
lots of weird things
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
backman | 1:82bc25a7b68b | 1 | #include "bx-adc.h" |
backman | 2:c51647d3c14d | 2 | #include "mbed.h" |
backman | 0:68c173249c01 | 3 | |
backman | 0:68c173249c01 | 4 | |
backman | 2:c51647d3c14d | 5 | //cause same si and clk camR ,camL are synchronous |
backman | 2:c51647d3c14d | 6 | |
backman | 0:68c173249c01 | 7 | class BX_camera{ |
backman | 0:68c173249c01 | 8 | |
backman | 2:c51647d3c14d | 9 | public: |
backman | 2:c51647d3c14d | 10 | |
backman | 2:c51647d3c14d | 11 | //static |
backman | 2:c51647d3c14d | 12 | void read(void); //block in here |
backman | 2:c51647d3c14d | 13 | |
backman | 3:c5f2281b3ed2 | 14 | |
backman | 2:c51647d3c14d | 15 | |
backman | 2:c51647d3c14d | 16 | |
backman | 2:c51647d3c14d | 17 | BX_camera(); |
backman | 2:c51647d3c14d | 18 | |
backman | 3:c5f2281b3ed2 | 19 | |
backman | 3:c5f2281b3ed2 | 20 | int black_centerR(void); //index 0~127 |
backman | 3:c5f2281b3ed2 | 21 | int black_centerL(void); |
backman | 2:c51647d3c14d | 22 | |
backman | 2:c51647d3c14d | 23 | |
backman | 2:c51647d3c14d | 24 | char sign_line_imageL[128]; |
backman | 2:c51647d3c14d | 25 | char sign_line_imageR[128]; |
backman | 2:c51647d3c14d | 26 | |
backman | 2:c51647d3c14d | 27 | |
backman | 2:c51647d3c14d | 28 | |
backman | 2:c51647d3c14d | 29 | private: |
backman | 2:c51647d3c14d | 30 | |
backman | 2:c51647d3c14d | 31 | FastAnalogIn* line_CamR; |
backman | 2:c51647d3c14d | 32 | FastAnalogIn* line_CamL; |
backman | 2:c51647d3c14d | 33 | DigitalOut* cam_clk; |
backman | 2:c51647d3c14d | 34 | DigitalOut* si; |
backman | 3:c5f2281b3ed2 | 35 | |
backman | 3:c5f2281b3ed2 | 36 | unsigned int line_imageR[128]; //may buffer |
backman | 3:c5f2281b3ed2 | 37 | unsigned int line_imageL[128]; |
backman | 3:c5f2281b3ed2 | 38 | |
backman | 2:c51647d3c14d | 39 | |
backman | 2:c51647d3c14d | 40 | int w_f_vL; |
backman | 2:c51647d3c14d | 41 | int b_f_vL; |
backman | 2:c51647d3c14d | 42 | |
backman | 2:c51647d3c14d | 43 | int w_f_vR; |
backman | 2:c51647d3c14d | 44 | int b_f_vR; |
backman | 2:c51647d3c14d | 45 | |
backman | 0:68c173249c01 | 46 | |
backman | 0:68c173249c01 | 47 | |
backman | 0:68c173249c01 | 48 | |
backman | 0:68c173249c01 | 49 | |
backman | 0:68c173249c01 | 50 | |
backman | 0:68c173249c01 | 51 | |
backman | 0:68c173249c01 | 52 | }; |