-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdacMonitor.h
More file actions
37 lines (27 loc) · 1.68 KB
/
dacMonitor.h
File metadata and controls
37 lines (27 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/********************************************************************/
/* Description: DAC12を用いたアナログモニタの設定 */
/* File: dacMonitor.h */
/* Date: 2024/07/19 */
/* Author: Takashi YOSHIOKA */
/********************************************************************/
/********************************************************************/
/* 多重インクルード防止 */
/********************************************************************/
#ifndef _DACMONITOR_H_
#define _DACMONITOR_H_
/********************************************************************/
/* ヘッダファイルのインクルード */
/********************************************************************/
#include <Arduino.h>
/********************************************************************/
/* 各種定数定義 */
/********************************************************************/
static constexpr int16_t DACOUT_MAX = 2047; // DAC出力の上限値
static constexpr int16_t DACOUT_MIN = -2048; // DAC出力の下限値
static constexpr int16_t DACOUT_CEN = 2048; // DAC出力の中央値
/********************************************************************/
/* 外部公開関数のプロトタイプ宣言 */
/********************************************************************/
void setup_dac_monitor(void);
void set_dac_out(int16_t dacOutArg);
#endif /* END _DACMONITOR_H_ */