#include <bluemelon/types.h>
#include <bluesense/external/bsDeviceTable.h>
The BM7002 enables you to switch so called 'open collector' outputs. This opens up possibilities to directly switch small lights, relays, solenoids or other components which have their own power supply. By routing positive voltage connection of your own power supply to the board you can use the boards internal diodes. This allows you to switch an inductive load, for example a relay without any components!
|
|
This (opaque) structure represents the device specific data of an RelayOutputDevice |
|
|
Enumeration describing the open collector output ports |
|
||||||||||||
|
Returns the state of an output pin 'port'
|
|
|
Returns the multiplexed states of the outputs
|
|
|
Returns a RelayOutput device instance from a device info pointer (obtained from the device table).
|
|
||||||||||||
|
Returns the 'tobe set' state of an output
|
|
|
Returns a bitmask containing which outputs are be set after the request finishes
|
|
|
Checks if the output/pwm get request is finished
|
|
|
Checks if the output/pwm set request is finished
|
|
|
Returns the current set time out delay. The time out delay is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
|
|
Sends a request to retrieve the current set output/pwm states
|
|
||||||||||||||||
|
Sends a request to set a single output to a new state
|
|
||||||||||||||||
|
Sends a request to update the output states of the device.
|
|
|
Resets the device proxy to its initial state. The the actual device settings are requested from the module.
|
|
||||||||||||
|
Sets the time out value which is used to check if a request was acknowledged in the set time. If an answer to a request is not received within the set time, the request is resent.
|
1.4.4