An integrated circuit driver structure, comprising an amplifier, a current
mirror block and an external current set resistor, is provided that is
digitally configurable to operate in a current output mode or in a
voltage output mode with its output level controlled by an external
voltage. The current mirror block comprises multiple current sources, all
having the same gate bias supplied by the output of amplifier. At any
time, at least one current source is connected to supply the reference
current to resistor, while all other current sources are connected to
mirror the reference current to the load current output towards the load.
A current gain ratio is based on the number of current sources connected
to supply resistor and the number connected to mirror the reference
current.