SSLM1 / 2_P7100

Dependents:   1_P-7100 4_EEPROM_baro_press 0_twe_Tmode 4_sensor-Integration-function2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers P7100.h Source File

P7100.h

00001 #ifndef MBED_P7100_H
00002 #define MBED_P7100_H
00003 
00004 #include "mbed.h"
00005 
00006 class P7100
00007 {
00008 public:
00009     P7100(PinName mosi, PinName miso, PinName sclk, PinName pin);           //spi,csのピン定義
00010     ~P7100();
00011 
00012     float v_read();     //電圧を読む関数
00013 
00014 private:
00015     SPI spi;
00016     DigitalOut cs;
00017 };
00018 
00019 #endif