Driver for the GP8403 2ch 0-10V DAC.
Arguments
Bold arguments are mandatory. For more information on the listed arguments refer to the class documentation: herosdevices.hardware.guestgood.GP8403 If parameters appear in this list but not in the class definition, please recursively check the linked base classes for the definition of the parameter.
Argument
Type
Default Value
Description
bus_id
<class ‘int’>
1
I2C bus id (default 1).
device_address
<class ‘int’>
95
I2C address set (by resistors or switches) on the GP8403 (0x58 - 0x5f)
mode_5v
<class ‘bool’>
False
whether to use 0-5V range (True) or 0-10V range (False, default)
Example JSON for BOSS
The following JSON strings can be used to start a HERO device representation of GP8403 using BOSS .
{
"_id" : "flowboxcontrol_dac" ,
"classname" : "herosdevices.hardware.guestgood.GP8403" ,
"arguments" : {
"bus_id" : 1 ,
"device_address" : 95 ,
"mode_5v" : false
}
}
from examples/guestgood/gp8403.json
{
"_id" : "my_GP8403" ,
"classname" : "herosdevices.hardware.guestgood.GP8403" ,
"arguments" : {
"bus_id" : 1 ,
"device_address" : 95 ,
"mode_5v" : false
}
}
generated from signature
Inheritance
digraph inheritance073cef8ad7 {
bgcolor=transparent;
rankdir=TB;
size="";
"herosdevices.core.templates.i2c.I2CDeviceTemplate" [URL="../../../autoapi/herosdevices/core/templates/i2c/index.html#herosdevices.core.templates.i2c.I2CDeviceTemplate",color="#5fabe8",fillcolor="#5fabe827",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,penwidth=2,shape=box,style="rounded,filled",target="_top",tooltip="Template (base class) for devices connected via I2C."];
"herosdevices.hardware.guestgood.GP8403" [URL="../../../autoapi/herosdevices/hardware/guestgood/index.html#herosdevices.hardware.guestgood.GP8403",color="#5fabe8",fillcolor="#5fabe827",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,penwidth=2,shape=box,style="rounded,filled",target="_top",tooltip="Driver for the GP8403 2ch 0-10V DAC."];
"herosdevices.core.templates.i2c.I2CDeviceTemplate" -> "herosdevices.hardware.guestgood.GP8403" [arrowsize=1,color="#5fabe8",dir="back",penwidth=2,style="setlinewidth(0.5)"];
"herosdevices.interfaces.atomiq.DAC" -> "herosdevices.hardware.guestgood.GP8403" [arrowsize=1,color="#5fabe8",dir="back",penwidth=2,style="setlinewidth(0.5)"];
"herosdevices.interfaces.Interface" [URL="../../../autoapi/herosdevices/interfaces/index.html#herosdevices.interfaces.Interface",color="#5fabe8",fillcolor="#5fabe827",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,penwidth=2,shape=box,style="rounded,filled",target="_top",tooltip="Generic Interface to describe and check capabilities of a device driver."];
"herosdevices.interfaces.atomiq.AtomiqInterface" [URL="../../../autoapi/herosdevices/interfaces/atomiq/index.html#herosdevices.interfaces.atomiq.AtomiqInterface",color="#5fabe8",fillcolor="#5fabe827",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,penwidth=2,shape=box,style="rounded,filled",target="_top",tooltip="This interface defines the necessary methods for a HERO to seamlessly being converted into an atomiq component."];
"herosdevices.interfaces.Interface" -> "herosdevices.interfaces.atomiq.AtomiqInterface" [arrowsize=1,color="#5fabe8",dir="back",penwidth=2,style="setlinewidth(0.5)"];
"herosdevices.interfaces.atomiq.DAC" [URL="../../../autoapi/herosdevices/interfaces/atomiq/index.html#herosdevices.interfaces.atomiq.DAC",color="#5fabe8",fillcolor="#5fabe827",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,penwidth=2,shape=box,style="rounded,filled",target="_top",tooltip="HERO implementation of :external+atomiq:py:class:`atomiq.components.electronics.voltagesoure.DAC`."];
"herosdevices.interfaces.atomiq.AtomiqInterface" -> "herosdevices.interfaces.atomiq.DAC" [arrowsize=1,color="#5fabe8",dir="back",penwidth=2,style="setlinewidth(0.5)"];
}