Skip to content

daisy::MAX11300Driver::PinConfig

More...

Public Functions

Name
void Defaults()

Public Attributes

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

Detailed Description

struct daisy::MAX11300Driver::PinConfig;

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 Functions Documentation

function Defaults

inline void Defaults()

Default pin settings - Disabled (High-Z mode)


Public Attributes Documentation

variable mode

PinMode mode;

&

variable adc

MAX11300Types::AdcVoltageRange adc;

variable dac

MAX11300Types::DacVoltageRange dac;

variable range

union daisy::MAX11300Driver::PinConfig::@6 range;

&

variable threshold

float 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 * value;

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


Updated on 2024-01-03 at 19:41:01 +0000