Library for interfacing with the MAX4822 relay driver.
Dependents: MAXREFDES130_131_Demo MAXREFDES130_Demo
Diff: MAX4822.h
- Revision:
- 3:90f7cd976f18
- Parent:
- 1:0263f798de82
--- a/MAX4822.h Tue Aug 02 19:23:49 2016 +0000 +++ b/MAX4822.h Tue Aug 02 23:17:48 2016 +0000 @@ -100,11 +100,15 @@ ///@brief Sets all relays of device connected to set ///@param[in] set - Pin connected to SET pin of device - void set_all_relays(DigitalOut & set); + ///@param[in] device - Device number in daisychain mode, defaults to 0 + ///@return Result of operation. + CmdResult set_all_relays(DigitalOut & set, uint8_t device = 0); ///@brief Resets all relays of device connected to reset ///@param[in] reset - Pin connected to RESET pin of device - void reset_all_relays(DigitalOut & reset); + ///@param[in] device - Device number in daisychain mode, defaults to 0 + ///@return Result of operation. + CmdResult reset_all_relays(DigitalOut & reset, uint8_t device = 0); ///@brief Sets private relay state and sends it if 'send_data' is true ///@param[in] r - Relay to set