D6F_Ph_Sample.c - Omron D6F-PH User Manual

Mems differential pressure sensor
Table of Contents

Advertisement

10-2.

D6F_PH_Sample.c

/*=================================================*/
/* D6F-PH Digital Flow Sensor Sample Code (using STM32)
* :Copyright: (C) OMRON Corporation, Microdevice H.Q.
* :Auther
:
* :Revision: $Rev$
* :Id:
$Id$
* :Date:
$Date$
*
* All Rights Reserved
* OMRON Proprietary Right
*=================================================*/
#include "stm32f10x_i2c.h"
#include "D6F_PH_Sample.h"
#define I2C1_SCL_PIN
#define I2C1_SDA_PIN
#define I2C2_SCL_PIN
#define I2C2_SDA_PIN
typedef unsigned char
typedef unsigned short uint16;
typedef unsigned long
short RD_FIFO; /* 16bit data width */
unsigned short uRD_FIFO; /* 16bit data width */
uint8_t RD_REG;
char setting_done_flag = 0;
// Dummy wait routine
void adc_wait(volatile unsigned long delay)
{
while(delay) delay--;
}
/*=================================================*/
/* Initialize Function
/* Usage
: Initialize( void )
/* Argument
: Null
/* Return value : T.B.D
/*=================================================*/
void Initialize( void )
{
/* EEPROM Control <= 00h */
25
GPIO_Pin_6
GPIO_Pin_7
GPIO_Pin_10
GPIO_Pin_11
uint8;
uint32;
/* 8bit data width */
D6F-PH MEMS Differential pressure Sensor User's Manual (A288)
*/
*/
*/
*/

Advertisement

Table of Contents
loading

Table of Contents