ESPHome  2024.10.2
Data Structures | Namespaces | Enumerations
mcp2515.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::mcp2515::MCP2515::TxBnRegs
 
struct  esphome::mcp2515::MCP2515::RxBnRegs
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::mcp2515
 

Enumerations

enum  esphome::mcp2515::CanClock { esphome::mcp2515::MCP_20MHZ, esphome::mcp2515::MCP_16MHZ, esphome::mcp2515::MCP_12MHZ, esphome::mcp2515::MCP_8MHZ }
 
enum  esphome::mcp2515::MASK { esphome::mcp2515::MASK0, esphome::mcp2515::MASK1 }
 
enum  esphome::mcp2515::RXF {
  esphome::mcp2515::RXF0 = 0, esphome::mcp2515::RXF1 = 1, esphome::mcp2515::RXF2 = 2, esphome::mcp2515::RXF3 = 3,
  esphome::mcp2515::RXF4 = 4, esphome::mcp2515::RXF5 = 5
}
 
enum  esphome::mcp2515::RXBn { esphome::mcp2515::RXB0 = 0, esphome::mcp2515::RXB1 = 1 }
 
enum  esphome::mcp2515::TXBn { esphome::mcp2515::TXB0 = 0, esphome::mcp2515::TXB1 = 1, esphome::mcp2515::TXB2 = 2 }
 
enum  esphome::mcp2515::CanClkOut {
  esphome::mcp2515::CLKOUT_DISABLE = -1, esphome::mcp2515::CLKOUT_DIV1 = 0x0, esphome::mcp2515::CLKOUT_DIV2 = 0x1, esphome::mcp2515::CLKOUT_DIV4 = 0x2,
  esphome::mcp2515::CLKOUT_DIV8 = 0x3
}
 
enum  esphome::mcp2515::CANINTF : uint8_t {
  esphome::mcp2515::CANINTF_RX0IF = 0x01, esphome::mcp2515::CANINTF_RX1IF = 0x02, esphome::mcp2515::CANINTF_TX0IF = 0x04, esphome::mcp2515::CANINTF_TX1IF = 0x08,
  esphome::mcp2515::CANINTF_TX2IF = 0x10, esphome::mcp2515::CANINTF_ERRIF = 0x20, esphome::mcp2515::CANINTF_WAKIF = 0x40, esphome::mcp2515::CANINTF_MERRF = 0x80
}
 
enum  esphome::mcp2515::EFLG : uint8_t {
  esphome::mcp2515::EFLG_RX1OVR = (1 << 7), esphome::mcp2515::EFLG_RX0OVR = (1 << 6), esphome::mcp2515::EFLG_TXBO = (1 << 5), esphome::mcp2515::EFLG_TXEP = (1 << 4),
  esphome::mcp2515::EFLG_RXEP = (1 << 3), esphome::mcp2515::EFLG_TXWAR = (1 << 2), esphome::mcp2515::EFLG_RXWAR = (1 << 1), esphome::mcp2515::EFLG_EWARN = (1 << 0)
}
 
enum  esphome::mcp2515::STAT : uint8_t { esphome::mcp2515::STAT_RX0IF = (1 << 0), esphome::mcp2515::STAT_RX1IF = (1 << 1) }