added getMasterAddress() and isSlaveMaster()
This commit is contained in:
@@ -156,6 +156,20 @@ private:
|
||||
*/
|
||||
bool isMaster(unsigned char addr);
|
||||
|
||||
/**
|
||||
* Returns whether the address is a slave address of one of the 25 masters.
|
||||
* @param addr the address to check.
|
||||
* @return <code>true</code> if the specified address is a slave address of a master.
|
||||
*/
|
||||
bool isSlaveMaster(unsigned char addr);
|
||||
|
||||
/**
|
||||
* Returns the master address associated with the specified address (master or slave).
|
||||
* @param addr the address to check.
|
||||
* @return the master address, or SYN if the specified address is neither a master address nor a slave address of a master.
|
||||
*/
|
||||
unsigned char getMasterAddress(unsigned char addr);
|
||||
|
||||
/**
|
||||
* Returns the number of the master if the address is a valid bus address.
|
||||
* @param addr the bus address.
|
||||
|
||||
Reference in New Issue
Block a user