Nelson Santos / Mbed 2 deprecated Coursework_copy

Dependencies:   X_NUCLEO_IKS01A1 mbed-rtos mbed

Fork of HelloWorld_IKS01A1 by ST

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mailBox.cpp Source File

mailBox.cpp

00001 #include "mbed.h"
00002 #include "rtos.h"
00003 
00004 #define QUEUESIZE 120
00005 
00006 typedef struct {
00007         uint8_t   id;
00008         float    tempCelsius;
00009         float    tempFarenheit;
00010         float    humidity;
00011         float    pressure;
00012         int32_t  accelerometer[3];
00013         int32_t  gyroscope[3];
00014         int32_t  magnetometer[3];
00015         char*    date;
00016     }log_data;
00017     
00018 Mail<log_data, QUEUESIZE> mail_box;