#include <eeprom.h>
Public Member Functions | |
EepromSpi (uint8_t sync_pin, uint8_t spi_bus_config_pin, uint8_t clock_divider=7, BitOrder bit_order=MSBFIRST, uint8_t spi_mode=SPI_MODE3) | |
uint8_t | Begin (void) |
Eeprom class
EepromSpi::EepromSpi | ( | uint8_t | sync_pin, |
uint8_t | spi_bus_config_pin, | ||
uint8_t | clock_divider = 7 , |
||
BitOrder | bit_order = MSBFIRST , |
||
uint8_t | spi_mode = SPI_MODE3 |
||
) |
Constructor
[in] | sync_pin | The sync or chip select of the dac chip. Different than spi_bus_config_pin |
[in] | spi_bus_config_pin | The pin that identifies the bus. More than one dac can share the same pin. |
[in] | clock_divider | Sets the spi frequency. spi_freq = clock_freq (84 MHz for arduino due) / clock_divider (default: 4) |
[in] | bit_order | Possible values:
|
[in] | spi_mode | Possible values:
|
uint8_t EepromSpi::Begin | ( | void | ) |
Configures pins for SPI and initializes SPI communication. This function must be called before calling any other function.