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 Rejestrator
Acquisition.h
00001 #include "Rejestrator.h" 00002 #include "H_IO.h" 00003 #include "MMA8451Q.h" 00004 #include "MAG3110.h" 00005 00006 #ifndef _ACQUISITION_H 00007 #define _ACQUISITION_H 00008 00009 #if defined (TARGET_KL25Z) || defined (TARGET_KL46Z) 00010 const PinName SDA = PTE25; 00011 const PinName SCL = PTE24; 00012 #elif defined (TARGET_KL05Z) 00013 const PinName SDA = PTB4; 00014 const PinName SCL = PTB3; 00015 #elif defined (TARGET_K20D50M) 00016 const PinName SDA = PTB1; 00017 const PinName SCL = PTB0; 00018 #else 00019 #error TARGET NOT DEFINED 00020 #endif 00021 00022 const int MMA8451_I2C_ADDRESS = (0x1d<<1); 00023 00024 extern bool was_overflow; 00025 00026 extern struct row_type last_measurement; 00027 00028 extern rtos::MemoryPool<struct row_type, 20> data_memory; 00029 extern rtos::Queue<struct row_type, 20> data_queue; 00030 00031 void ThreadAcquisition(const void *param); 00032 void RunningAcquisition(const void *param); 00033 00034 #endif
Generated on Sat Jul 30 2022 15:40:23 by
