LTC2439
Pilote l'ADC LTC2439
LTC2439.h
1
//
2
// LTC2439.hpp
3
// libLTC
4
//
5
// Created by Tim THUREL on 04/03/2020.
6
// Copyright © 2020 Tim THUREL. All rights reserved.
7
//
8
9
10
11
23
#ifndef LTC2439.h
24
#define LTC2439.h
25
26
#include <stdint.h>
27
#include "SPI.h"
28
#include <Arduino.h>
29
30
#define DEBUG
31
32
//#define ARDUINO
33
34
#ifdef ARDUINO
35
36
static
bool
toggle = 0;
37
static
int
pinF0;
38
#endif
39
43
class
LTC
44
{
45
public
:
46
LTC
(
int
CSpin);
50
LTC
(
int
CSpin,
int
SDOpin);
55
LTC
(
int
CSpin,
int
SDOpin,
int
F0pin);
61
long
readValue
(
int
channel);
// renvoie la valeur du channel en cours
62
68
#ifdef ARDUINO
69
void
startTimer(
int
frequency);
70
#endif
71
72
private
:
73
int
selectPin,pinConv;
74
int
tableChanel[16]{0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15};
// tableau des Pins
75
};
76
77
78
79
#endif
/* LTC2439_hpp */
LTC
Classe utilisé pour la librairie LTC2439.
Definition:
LTC2439.h:44
LTC::LTC
LTC(int CSpin)
Definition:
LTC2439.cpp:18
LTC::readValue
long readValue(int channel)
Definition:
LTC2439.cpp:63
Généré par
1.8.18