Mcp23xxx Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
Mcp23xxx(Mcp23xxx+BusAdapter, Int32, Int32, Int32, GpioController, BankStyle) | |
Mcp23xxx(Mcp23xxx+BusAdapter, Int32, Int32, Int32, GpioController, BankStyle, Boolean) |
Ekspansi I/O paralel tujuan umum untuk aplikasi I2C atau SPI. |
Mcp23xxx(Mcp23xxx+BusAdapter, Int32, Int32, Int32, GpioController, BankStyle)
protected Mcp23xxx (Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter bus, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController masterController = default, Iot.Device.Mcp23xxx.BankStyle bankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential);
new Iot.Device.Mcp23xxx.Mcp23xxx : Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter * int * int * int * System.Device.Gpio.GpioController * Iot.Device.Mcp23xxx.BankStyle -> Iot.Device.Mcp23xxx.Mcp23xxx
Protected Sub New (bus As Mcp23xxx.BusAdapter, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional masterController As GpioController = Nothing, Optional bankStyle As BankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential)
Parameter
- reset
- Int32
- interruptA
- Int32
- interruptB
- Int32
- masterController
- GpioController
- bankStyle
- BankStyle
Berlaku untuk
Mcp23xxx(Mcp23xxx+BusAdapter, Int32, Int32, Int32, GpioController, BankStyle, Boolean)
Ekspansi I/O paralel tujuan umum untuk aplikasi I2C atau SPI.
protected Mcp23xxx (Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter bus, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController? controller = default, Iot.Device.Mcp23xxx.BankStyle bankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential, bool shouldDispose = true);
protected Mcp23xxx (Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter bus, int reset = -1, int interruptA = -1, int interruptB = -1, System.Device.Gpio.GpioController? gpioController = default, Iot.Device.Mcp23xxx.BankStyle bankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential, bool shouldDispose = true);
new Iot.Device.Mcp23xxx.Mcp23xxx : Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter * int * int * int * System.Device.Gpio.GpioController * Iot.Device.Mcp23xxx.BankStyle * bool -> Iot.Device.Mcp23xxx.Mcp23xxx
new Iot.Device.Mcp23xxx.Mcp23xxx : Iot.Device.Mcp23xxx.Mcp23xxx.BusAdapter * int * int * int * System.Device.Gpio.GpioController * Iot.Device.Mcp23xxx.BankStyle * bool -> Iot.Device.Mcp23xxx.Mcp23xxx
Protected Sub New (bus As Mcp23xxx.BusAdapter, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional controller As GpioController = Nothing, Optional bankStyle As BankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential, Optional shouldDispose As Boolean = true)
Protected Sub New (bus As Mcp23xxx.BusAdapter, Optional reset As Integer = -1, Optional interruptA As Integer = -1, Optional interruptB As Integer = -1, Optional gpioController As GpioController = Nothing, Optional bankStyle As BankStyle = Iot.Device.Mcp23xxx.BankStyle.Sequential, Optional shouldDispose As Boolean = true)
Parameter
Bus yang tersambung dengan perangkat.
- reset
- Int32
Nomor pin output yang tersambung ke reset perangkat keras.
- interruptA
- Int32
Nomor pin input yang tersambung ke interupsi untuk Port A (INTA).
- interruptB
- Int32
Nomor pin input yang tersambung ke interupsi untuk Port B (INTB).
- controllergpioController
- GpioController
Pengontrol untuk reset dan menyela pin. Jika tidak ditentukan, pengontrol default akan digunakan.
- bankStyle
- BankStyle
Gaya bank port saat ini. Ini tidak mengatur gaya bank - ini memberi tahu kita apa gaya banknya. Sangat disarankan untuk tidak mengubah gaya bank dari default karena tidak ada cara langsung untuk mendeteksi gaya chip apa dan sebagian besar aplikasi akan gagal jika chip tidak diatur ke default. Pengaturan ini tidak berdampak pada perluasan 8-bit.
- shouldDispose
- Boolean
True untuk membuang Gpio Controller
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk