mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-17 06:29:15 +01:00
Update I2CManager.h
Make getMuxCount() publicly visible.
This commit is contained in:
parent
ddfc67d2e3
commit
cdf3927aad
@ -506,10 +506,12 @@ private:
|
|||||||
|
|
||||||
#if defined(I2C_EXTENDED_ADDRESS)
|
#if defined(I2C_EXTENDED_ADDRESS)
|
||||||
// Count of I2C multiplexers found when initialising. If there is only one
|
// Count of I2C multiplexers found when initialising. If there is only one
|
||||||
// MUX then the subbus does not de-selecting after use; however, if there
|
// MUX then the subbus does not need de-selecting after use; however, if there
|
||||||
// are two or more, then the subbus must be deselected to avoid multiple
|
// are two or more, then the subbus must be deselected to avoid multiple
|
||||||
// sub-bus legs on different multiplexers being accessible simultaneously.
|
// sub-bus legs on different multiplexers being accessible simultaneously.
|
||||||
|
private:
|
||||||
uint8_t _muxCount = 0;
|
uint8_t _muxCount = 0;
|
||||||
|
public:
|
||||||
uint8_t getMuxCount() { return _muxCount; }
|
uint8_t getMuxCount() { return _muxCount; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -522,6 +524,7 @@ private:
|
|||||||
// Within the queue, each request's nextRequest field points to the
|
// Within the queue, each request's nextRequest field points to the
|
||||||
// next request, or NULL.
|
// next request, or NULL.
|
||||||
// Mark volatile as they are updated by IRC and read/written elsewhere.
|
// Mark volatile as they are updated by IRC and read/written elsewhere.
|
||||||
|
private:
|
||||||
I2CRB * volatile queueHead = NULL;
|
I2CRB * volatile queueHead = NULL;
|
||||||
I2CRB * volatile queueTail = NULL;
|
I2CRB * volatile queueTail = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user