Dependents:   WebCamera_SD

Fork of uvchost by Norimasa Okamoto

Committer:
Dromar
Date:
Sun Feb 10 15:20:36 2013 +0000
Revision:
4:97438d526ad3
Parent:
0:b0f04c137829
????????4800????????????????; /uvchost/uvc/uvc.cpp??; int uvc::get_jpeg(const char* path); const int size = 9600;; ????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:b0f04c137829 1 #include "mbed.h"
va009039 0:b0f04c137829 2 #include "uvc.h"
va009039 0:b0f04c137829 3
va009039 0:b0f04c137829 4 void uvc::wait(float s)
va009039 0:b0f04c137829 5 {
va009039 0:b0f04c137829 6 Timer t;
va009039 0:b0f04c137829 7 t.start();
va009039 0:b0f04c137829 8 while(t.read() < s) {
va009039 0:b0f04c137829 9 poll();
va009039 0:b0f04c137829 10 }
va009039 0:b0f04c137829 11 }
va009039 0:b0f04c137829 12
va009039 0:b0f04c137829 13 void uvc::wait_ms(int ms)
va009039 0:b0f04c137829 14 {
va009039 0:b0f04c137829 15 Timer t;
va009039 0:b0f04c137829 16 t.start();
va009039 0:b0f04c137829 17 while(t.read_ms() < ms) {
va009039 0:b0f04c137829 18 poll();
va009039 0:b0f04c137829 19 }
va009039 0:b0f04c137829 20 }
va009039 0:b0f04c137829 21