Prusa MINI Firmware overview
|
Go to the documentation of this file.
28 #include "../../core/types.h"
32 #define defaultVDD DAC_STEPPER_MAX //was 5000 but differs with internal Vref
33 #define BASE_ADDR 0x60
34 #define RESET 0b00000110
35 #define WAKE 0b00001001
36 #define UPDATE 0b00001000
37 #define MULTIWRITE 0b01000000
38 #define SINGLEWRITE 0b01011000
39 #define SEQWRITE 0b01010000
40 #define VREFWRITE 0b10000000
41 #define GAINWRITE 0b11000000
42 #define POWERDOWNWRITE 0b10100000
43 #define GENERALCALL 0b00000000
44 #define GAINWRITE 0b11000000
48 #define DAC_DEV_ADDRESS (BASE_ADDR | DAC_OR_ADDRESS)
void mcp4728_setDrvPct(xyze_uint8_t &pct)
void beginTransmission(uint8_t)
Definition: Wire.cpp:16
#define I2C_ADDRESS(A)
Definition: macros.h:292
#define GAINWRITE
Definition: dac_mcp4728.h:44
uint8_t mcp4728_getDrvPct(const uint8_t channel)
uint8_t mcp4728_setVref_all(const uint8_t value)
uint8_t requestFrom(uint8_t, uint8_t)
Definition: Wire.cpp:24
uint8_t i
Definition: screen_test_graph.c:72
#define _MIN(V...)
Definition: macros.h:333
#define DAC_STEPPER_VREF
Definition: pins_RIGIDBOARD_V2.h:45
#define DAC_STEPPER_GAIN
Definition: pins_RIGIDBOARD_V2.h:46
uint8_t mcp4728_eepromWrite()
#define highByte(w)
Definition: wiring_constants.h:89
uint8_t mcp4728_setGain_all(const uint8_t value)
#define SEQWRITE
Definition: dac_mcp4728.h:39
#define lowByte(w)
Definition: wiring_constants.h:88
virtual size_t write(uint8_t)
Definition: Wire.cpp:32
#define GENERALCALL
Definition: dac_mcp4728.h:43
TwoWire Wire
Definition: Wire.cpp:60
virtual int read(void)
Definition: Wire.cpp:49
void begin(void)
Definition: Wire.cpp:13
uint8_t mcp4728_analogWrite(const uint8_t channel, const uint16_t value)
const uint8_t[]
Definition: 404_html.c:3
unsigned int word
Definition: wiring_constants.h:108
#define defaultVDD
Definition: dac_mcp4728.h:32
uint16_t mcp4728_getValue(const uint8_t channel)
uint8_t endTransmission(void)
Definition: Wire.cpp:20
virtual int available(void)
Definition: Wire.cpp:45
uint8_t mcp4728_fastWrite()
#define DAC_STEPPER_MAX
Definition: pins_RIGIDBOARD_V2.h:44
#define LOOP_XYZE(VAR)
Definition: types.h:61
#define DAC_DEV_ADDRESS
Definition: dac_mcp4728.h:48
uint8_t mcp4728_simpleCommand(const byte simpleCommand)
#define VREFWRITE
Definition: dac_mcp4728.h:40