ISSDK
1.8
IoT Sensing Software Development Kit
boardkit
frdm-ke15z
frdm-stbc-dp5004
frdm-stbc-dp5004_shield.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3
* Copyright 2016-2017 NXP
4
* All rights reserved.
5
*
6
* SPDX-License-Identifier: BSD-3-Clause
7
*/
8
9
/**
10
* @file frdm_stbc_dp5004_shield.h
11
* @brief The frdm_stbc_dp5004_shield.h file declares mapping of the Kinetis
12
Device peripherals to the frmd-ke15z and frmd-stbc-dp5004 shield
13
*/
14
15
#ifndef _FRDM_STBC_DP5004_SHIELD_H_
16
#define _FRDM_STBC_DP5004_SHIELD_H_
17
18
/* The shield name */
19
#define SHIELD_NAME "FRDM-STBC-DP5004"
20
21
// MPXV5004DP Sensor based parameters
22
#define MPXV5004DP_ZERO_ERROR 1185
/* Zero Error Offset. */
23
#define MPXV5004DP_PRESSURE_FROM_ADC_VALUE(x) (uint32_t)(x*1.25 - MPXV5004DP_ZERO_ERROR)
/* Pressure in Pascals (Pa). */
24
25
/* Arduino Pin A0 (Sensor Analog Output Pin) maps to ADC0 Channel 0 on KE15Z (PTA0). */
26
#define MPXVDP5004_ADC12_CHANNEL 0U
27
#define MPXVDP5004_ADC12_CHANNEL_GROUP 0U
28
29
#endif
/* _FRDM_STBC_DP5004_SHIELD_H_ */
© Copyright 2016-2020 NXP. All Rights Reserved.