Firmware SDK
|
Driver for HARDWARIO 1-wire relay, chipset: DS2408. More...
Data Structures | |
struct | twr_onewire_relay_t |
HARDWARIO 1-wire relay instance. More... | |
Functions | |
bool | twr_onewire_relay_init (twr_onewire_relay_t *self, twr_onewire_t *onewire, uint64_t device_number) |
Initialize relay. More... | |
bool | twr_onewire_relay_set_state (twr_onewire_relay_t *self, twr_onewire_relay_channel_t relay_channel, bool state) |
Set relay to specified state. More... | |
bool | twr_onewire_relay_get_state (twr_onewire_relay_t *self, twr_onewire_relay_channel_t relay_channel, bool *state) |
Get current relay state. More... | |
Driver for HARDWARIO 1-wire relay, chipset: DS2408.
bool twr_onewire_relay_get_state | ( | twr_onewire_relay_t * | self, |
twr_onewire_relay_channel_t | relay_channel, | ||
bool * | state | ||
) |
Get current relay state.
[in] | self | Instance |
[in] | channel | |
[out] | state |
Definition at line 64 of file twr_onewire_relay.c.
bool twr_onewire_relay_init | ( | twr_onewire_relay_t * | self, |
twr_onewire_t * | onewire, | ||
uint64_t | device_number | ||
) |
Initialize relay.
[in] | self | Instance |
[in] | Pointer | on instance 1-Wire |
Definition at line 6 of file twr_onewire_relay.c.
bool twr_onewire_relay_set_state | ( | twr_onewire_relay_t * | self, |
twr_onewire_relay_channel_t | relay_channel, | ||
bool | state | ||
) |
Set relay to specified state.
[in] | self | Instance |
[in] | channel | |
[in] | state | Desired relay state |
Definition at line 20 of file twr_onewire_relay.c.