libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::MAX11300Types Namespace Reference

Classes

struct  DmaBuffer
 

Typedefs

typedef void(* TransportCallbackFunctionPtr) (void *context, SpiHandle::Result result)
 
typedef void(* UpdateCompleteCallbackFunctionPtr) (void *context)
 

Enumerations

enum  Pin {
  PIN_0 , PIN_1 , PIN_2 , PIN_3 ,
  PIN_4 , PIN_5 , PIN_6 , PIN_7 ,
  PIN_8 , PIN_9 , PIN_10 , PIN_11 ,
  PIN_12 , PIN_13 , PIN_14 , PIN_15 ,
  PIN_16 , PIN_17 , PIN_18 , PIN_19
}
 
enum class  AdcVoltageRange { ZERO_TO_10 = 0x0100 , NEGATIVE_5_TO_5 = 0x0200 , NEGATIVE_10_TO_0 = 0x0300 , ZERO_TO_2P5 = 0x0400 }
 
enum class  DacVoltageRange { ZERO_TO_10 = 0x0100 , NEGATIVE_5_TO_5 = 0x0200 , NEGATIVE_10_TO_0 = 0x0300 }
 
enum class  Result { OK , ERR }
 

Typedef Documentation

◆ TransportCallbackFunctionPtr

typedef void(* daisy::MAX11300Types::TransportCallbackFunctionPtr) (void *context, SpiHandle::Result result)

a callback type used by the transport layer

◆ UpdateCompleteCallbackFunctionPtr

typedef void(* daisy::MAX11300Types::UpdateCompleteCallbackFunctionPtr) (void *context)

A function called when all MAX11300s have been updated

Enumeration Type Documentation

◆ AdcVoltageRange

Pins of the MAX11300 configured for AnalogRead may be defined to operate within several pre-defined voltage ranges (assuming the power supply requirements for the range is met).

Pins configiured for DigitalRead are 0-5V only, and do not tolerate negative voltages.

WARNING, when a pin is configured as DigitalRead and a voltage lower than -250mV is applied, the codes read from ALL other pins confiured as AnalogRead will become unusuably corrupted.

Enumerator
ZERO_TO_10 
NEGATIVE_5_TO_5 
NEGATIVE_10_TO_0 
ZERO_TO_2P5 

◆ DacVoltageRange

Pins of the MAX11300 configured for AnalogWrite may be defined to operate within several pre-defined voltage ranges (assuming the power supply requirements for the range is met).

Pins configiured for DigitalWrite are 0-5V only, and do not produce negative voltages.

Enumerator
ZERO_TO_10 
NEGATIVE_5_TO_5 
NEGATIVE_10_TO_0 

◆ Pin

Represents a pin/port on the MAX11300, of which there are 20.

Enumerator
PIN_0 
PIN_1 
PIN_2 
PIN_3 
PIN_4 
PIN_5 
PIN_6 
PIN_7 
PIN_8 
PIN_9 
PIN_10 
PIN_11 
PIN_12 
PIN_13 
PIN_14 
PIN_15 
PIN_16 
PIN_17 
PIN_18 
PIN_19 

◆ Result

Indicates the success or failure of an operation within this class

Enumerator
OK 

&

ERR 

&