ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Embed: (wiki syntax)

« Back to documentation index

MCP23017 Class Reference

MCP23017 Class Reference

MCP23017 のアドレスモードについて: More...

#include <mcp23017.h>

Public Member Functions

 MCP23017 (I2C &_i2c, uint8_t _address)
 _i2c is instance of I2C _address is 7-bit slave address of MCP23017

Detailed Description

MCP23017 のアドレスモードについて:

Byte Mode: アドレスポインタの自動インクリメントがオフ(デフォルト) 特定のGPIOを連続して監視するときに便利

IOCON.BANK=0: GPIOA と GPIOB が読み出すたびにトグルする (デフォルト) 読み出すと1つアドレスをすすめる(またはアドレスを1つ戻す) 常に 16bit 分の GPIO を読み書きするとき便利

IOCON.BANK=1: GPIOA と GPIOB が完全に別れたアドレスになる

Sequential mode: アドレスポインタの自動インクリメントがオン I2C eeprom みたいな挙動になる

Definition at line 18 of file mcp23017.h.


Constructor & Destructor Documentation

MCP23017 ( I2C &  _i2c,
uint8_t  _address 
)

_i2c is instance of I2C _address is 7-bit slave address of MCP23017

Definition at line 88 of file mcp23017.h.