Prusa MINI Firmware overview
dac_dac084s085.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 class dac084s085 {
25  public:
26  dac084s085();
27  static void begin();
28  static void setValue(const uint8_t channel, const uint8_t value);
29  private:
30  static void cshigh();
31 };
DAC0_SYNC
#define DAC0_SYNC
Definition: pins_ALLIGATOR_R2.h:128
SPI_EEPROM1_CS
#define SPI_EEPROM1_CS
Definition: pins_ALLIGATOR_R2.h:134
dac084s085::begin
static void begin()
LOW
#define LOW
Definition: wiring_constants.h:70
SPI_CHAN_DAC
#define SPI_CHAN_DAC
Definition: pins_ALLIGATOR_R2.h:126
dac_dac084s085.h
DELAY_US
#define DELAY_US(x)
Definition: Delay.h:175
SET_OUTPUT
#define SET_OUTPUT(IO)
Definition: fastio.h:101
dac084s085::setValue
static void setValue(const uint8_t channel, const uint8_t value)
COUNT
#define COUNT(a)
Definition: macros.h:200
spiSend
void spiSend(uint8_t b)
dac084s085
Definition: dac_dac084s085.h:24
WRITE
#define WRITE(IO, V)
Definition: fastio.h:96
spiBegin
void spiBegin()
uint8_t
const uint8_t[]
Definition: 404_html.c:3
dac084s085::dac084s085
dac084s085()
SPI_FLASH_CS
#define SPI_FLASH_CS
Definition: pins_FYSETC_F6_13.h:39
HIGH
#define HIGH
Definition: wiring_constants.h:71
SS_PIN
#define SS_PIN
Definition: spi_pins.h:64
DAC1_SYNC
#define DAC1_SYNC
Definition: pins_ALLIGATOR_R2.h:129
SPI_EEPROM2_CS
#define SPI_EEPROM2_CS
Definition: pins_ALLIGATOR_R2.h:137