Skip to content

Struct daisy::MAX11300Driver::PinConfig

ClassList > PinConfig

More...

Public Attributes

Type Name
MAX11300Types::AdcVoltageRange adc
MAX11300Types::DacVoltageRange dac
PinMode mode
union daisy::MAX11300Driver::PinConfig range
float threshold
uint16_t * value

Public Functions

Type Name
void Defaults ()

Detailed Description

The PinConfig struct holds the necessary information needed to configure a pin/port of the MAX11300, as well as a pointer to the stateful pin data.

Public Attributes Documentation

variable adc

MAX11300Types::AdcVoltageRange daisy::MAX11300Driver< Transport, num_devices >::PinConfig::adc;

variable dac

MAX11300Types::DacVoltageRange daisy::MAX11300Driver< Transport, num_devices >::PinConfig::dac;

variable mode

PinMode daisy::MAX11300Driver< Transport, num_devices >::PinConfig::mode;

&


variable range

union daisy::MAX11300Driver::PinConfig daisy::MAX11300Driver< Transport, num_devices >::PinConfig::range;

&


variable threshold

float daisy::MAX11300Driver< Transport, num_devices >::PinConfig::threshold;

This is a voltage value used as follows:

GPI - Defines what input voltage constituates a logical 1 GPO - The output voltage of the pin at logical 1


variable value

uint16_t* daisy::MAX11300Driver< Transport, num_devices >::PinConfig::value;

In the case of ANALOG_IN or ANALOG_OUT modes, this points to the current 12 bit value of the pin.


Public Functions Documentation

function Defaults

inline void PinConfig::Defaults () 

Default pin settings - Disabled (High-Z mode)



The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/max11300.h