7 static const char *
const TAG =
"mcp23s08";
10 if (device_addr != 0) {
16 ESP_LOGCONFIG(TAG,
"Setting up MCP23S08...");
20 uint8_t
cmd = 0b01000000;
36 ESP_LOGCONFIG(TAG,
"MCP23S08:");
37 LOG_PIN(
" CS Pin: ", this->
cs_);
void spi_setup() override
void dump_config() override
uint8_t transfer_byte(uint8_t data)
void set_device_address(uint8_t device_addr)
bool write_reg(uint8_t reg, uint8_t value) override
bool read_reg(uint8_t reg, uint8_t *value) override
Implementation of SPI Controller mode.