# LTC2439: Fichier source de LTC2439.h

LTC2439.h
//
// LTC2439.hpp
// libLTC
//
// Created by Tim THUREL on 04/03/2020.
// Copyright © 2020 Tim THUREL. All rights reserved.
//
#ifndef LTC2439.h
#define LTC2439.h
#include <stdint.h>
#include "SPI.h"
#include <Arduino.h>
#define DEBUG
//#define ARDUINO
#ifdef ARDUINO
static bool toggle = 0;
static int pinF0;
#endif
class LTC
{
public:
LTC(int CSpin);
LTC(int CSpin, int SDOpin);
LTC(int CSpin, int SDOpin, int F0pin);
long readValue(int channel); // renvoie la valeur du channel en cours
#ifdef ARDUINO
void startTimer(int frequency);
#endif
private:
int selectPin,pinConv;
int tableChanel[16]{0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15}; // tableau des Pins
};
#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