libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
max11300.h File Reference
#include "daisy_core.h"
#include "per/spiMultislave.h"
#include "sys/system.h"
#include <cstring>

Go to the source code of this file.

Classes

struct  daisy::MAX11300Types::DmaBuffer
 
class  daisy::MAX11300MultiSlaveSpiTransport
 
struct  daisy::MAX11300MultiSlaveSpiTransport::Config< numDevices >
 
struct  daisy::MAX11300MultiSlaveSpiTransport::Config< numDevices >::PinConfig
 
class  daisy::MAX11300Driver< Transport, num_devices >
 Device Driver for the MAX11300 20 port ADC/DAC/GPIO device. More...
 
struct  daisy::MAX11300Driver< Transport, num_devices >::Config
 

Namespaces

namespace  daisy
 Hardware defines and helpers for daisy field platform.
 
namespace  daisy::MAX11300Types
 

Macros

#define DSY_MAX11300_H
 
#define MAX11300_DEVICE_ID   0x00
 
#define MAX11300_DEVCTL   0x10
 
#define MAX11300_FUNC_BASE   0x20
 
#define MAX11300_GPIDAT   0x0b
 
#define MAX11300_GPODAT   0x0d
 
#define MAX11300_ADCDAT_BASE   0x40
 
#define MAX11300_DACDAT_BASE   0x60
 
#define MAX11300_TRANSPORT_BUFFER_LENGTH   41
 

Typedefs

typedef void(* daisy::MAX11300Types::TransportCallbackFunctionPtr) (void *context, SpiHandle::Result result)
 
typedef void(* daisy::MAX11300Types::UpdateCompleteCallbackFunctionPtr) (void *context)
 
template<size_t num_devices = 1>
using daisy::MAX11300 = daisy::MAX11300Driver< MAX11300MultiSlaveSpiTransport, num_devices >
 

Enumerations

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

Macro Definition Documentation

◆ DSY_MAX11300_H

#define DSY_MAX11300_H