Projet Drone de surveillance du labo TRSE (INGESUP)
Dependencies: mbed PID ADXL345 Camera_LS_Y201 ITG3200 RangeFinder mbos xbee_lib Motor Servo
Diff: Service/Buffer_Trame.h
- Revision:
- 22:d2adbcc3580d
- Child:
- 23:7f5681d8d5b5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Service/Buffer_Trame.h Wed Apr 03 09:11:38 2013 +0000 @@ -0,0 +1,47 @@ + /* Copyright (c) 2012 - 2013 AUTEUR + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + /* + * Description : Cette classe contient les fonctionnalités d'un buffer de trame. + * Input + * Output + */ + + + #ifndef BUFFER_TRAME_H + #define BUFFER_TRAME_H + + #include "mbos.h" + + typedef struct { + char identifier; + char data [8]; + }frame; + + class C_FrameBuffer { + + private : + /* ATTRIBUTS */ + + public : + /* CONSTRUCTEUR(S) */ + C_FrameBuffer(); + + /* DESTRUCTEUR */ + ~C_FrameBuffer(); + + /* METHODES */ + + }; + + #endif \ No newline at end of file