picolibrary

MCP23008 Facilities

Microchip MCP23008 facilities are defined in the include/picolibrary/microchip/mcp23008.h/source/picolibrary/microchip/mcp23008.cc header/source file pair.

Table of Contents

  1. Register Information
  2. Device Addressing
  3. Driver
  4. Pin
  5. Internally Pulled-Up Input Pin
  6. Open-Drain I/O Pin
  7. Push-Pull I/O Pin

Register Information

Microchip MCP23008 register information is defined in the following type aliases:

See the Microchip MCP23008/MCP23S08 register information documentation for more information.

Device Addressing

The ::picolibrary::Microchip::MCP23008::Address_Numeric type alias is used to store a Microchip MCP23008 device address in numeric (right justified) format. See the ::picolibrary::I2C::Device_Address_Numeric documentation for more information.

The ::picolibrary::Microchip::MCP23008::Address_Transmitted type alias is used to store a Microchip MCP23008 device address in transmitted (left shifted) format. See the ::picolibrary::I2C::Device_Address_Transmitted documentation for more information.

Driver

The ::picolibrary::Microchip::MCP23008::Driver template class implements a Microchip MCP23008/MCP23S08 driver interface for interacting with a Microchip MCP23008. See the ::picolibrary::Microchip::MCP23X08::Driver_Concept documentation for more information. ::picolibrary::Microchip::MCP23008::Driver automated tests are defined in the test/automated/picolibrary/microchip/mcp23008/driver/main.cc source file.

The ::picolibrary::Microchip::MCP23008::Mock_Driver mock Microchip MCP23008 driver class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/microchip/mcp23008.h/source/picolibrary/testing/automated/microchip/mcp23008.cc header/source file pair.

The ::picolibrary::Microchip::MCP23008::Caching_Driver alias template adds Microchip MCP23008/MCP23S08 caching driver functionality to ::picolibrary::Microchip::MCP23008::Driver. See the ::picolibrary::Microchip::MCP23X08::Caching_Driver_Concept documentation for more information.

Pin

The ::picolibrary::Microchip::MCP23008::Pin type alias is used to interact with a Microchip MCP23008 pin. See the ::picolibrary::Microchip::MCP23X08::Pin documentation for more information.

Internally Pulled-Up Input Pin

The ::picolibrary::Microchip::MCP23008::Internally_Pulled_Up_Input_Pin type alias implements a GPIO internally pulled-up input pin interface for interacting with a Microchip MCP23008 pin. See the ::picolibrary::Microchip::MCP23X08::Internally_Pulled_Up_Input_Pin documentation for more information.

The picolibrary::Testing::Interactive::Microchip::MCP23008::state() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/microchip/mcp23008.h/source/picolibrary/testing/interactive/microchip/mcp23008.cc header/source file pair.

Open-Drain I/O Pin

The ::picolibrary::Microchip::MCP23008::Open_Drain_IO_Pin type alias implements a GPIO open-drain I/O pin interface for interacting with a Microchip MCP23008 pin. See the ::picolibrary::Microchip::MCP23X08::Open_Drain_IO_Pin documentation for more information.

The picolibrary::Testing::Interactive::Microchip::MCP23008::toggle() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/microchip/mcp23008.h/source/picolibrary/testing/interactive/microchip/mcp23008.cc header/source file pair.

Push-Pull I/O Pin

The ::picolibrary::Microchip::MCP23008::Push_Pull_IO_Pin type alias implements a GPIO push-pull I/O pin interface for interacting with a Microchip MCP23008 pin. See the ::picolibrary::Microchip::MCP23X08::Push_Pull_IO_Pin documentation for more information.

The picolibrary::Testing::Interactive::Microchip::MCP23008::toggle() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/microchip/mcp23008.h/source/picolibrary/testing/interactive/microchip/mcp23008.cc header/source file pair.