Classes | Macros | Définitions de type | Énumérations | Variables
Référence du fichier WVariant.h
#include <stdint.h>
#include "sam.h"

Classes

struct  _PinDescription
 

Macros

#define GetTCNumber(x)   ( (x) >> 8 )
 
#define GetTCChannelNumber(x)   ( (x) & 0xff )
 
#define GetTC(x)   ( g_apTCInstances[(x) >> 8] )
 
#define PIN_ATTR_NONE   (0UL<<0)
 
#define PIN_ATTR_COMBO   (1UL<<0)
 
#define PIN_ATTR_ANALOG   (1UL<<1)
 
#define PIN_ATTR_DIGITAL   (1UL<<2)
 
#define PIN_ATTR_PWM   (1UL<<3)
 
#define PIN_ATTR_TIMER   (1UL<<4)
 
#define PIN_ATTR_TIMER_ALT   (1UL<<5)
 
#define PIN_ATTR_EXTINT   (1UL<<6)
 
#define GCM_DFLL48M_REF   (0x00U)
 
#define GCM_FDPLL96M_INPUT   (0x01U)
 
#define GCM_FDPLL96M_32K   (0x02U)
 
#define GCM_WDT   (0x03U)
 
#define GCM_RTC   (0x04U)
 
#define GCM_EIC   (0x05U)
 
#define GCM_USB   (0x06U)
 
#define GCM_EVSYS_CHANNEL_0   (0x07U)
 
#define GCM_EVSYS_CHANNEL_1   (0x08U)
 
#define GCM_EVSYS_CHANNEL_2   (0x09U)
 
#define GCM_EVSYS_CHANNEL_3   (0x0AU)
 
#define GCM_EVSYS_CHANNEL_4   (0x0BU)
 
#define GCM_EVSYS_CHANNEL_5   (0x0CU)
 
#define GCM_EVSYS_CHANNEL_6   (0x0DU)
 
#define GCM_EVSYS_CHANNEL_7   (0x0EU)
 
#define GCM_EVSYS_CHANNEL_8   (0x0FU)
 
#define GCM_EVSYS_CHANNEL_9   (0x10U)
 
#define GCM_EVSYS_CHANNEL_10   (0x11U)
 
#define GCM_EVSYS_CHANNEL_11   (0x12U)
 
#define GCM_SERCOMx_SLOW   (0x13U)
 
#define GCM_SERCOM0_CORE   (0x14U)
 
#define GCM_SERCOM1_CORE   (0x15U)
 
#define GCM_SERCOM2_CORE   (0x16U)
 
#define GCM_SERCOM3_CORE   (0x17U)
 
#define GCM_SERCOM4_CORE   (0x18U)
 
#define GCM_SERCOM5_CORE   (0x19U)
 
#define GCM_TCC0_TCC1   (0x1AU)
 
#define GCM_TCC2_TC3   (0x1BU)
 
#define GCM_TC4_TC5   (0x1CU)
 
#define GCM_TC6_TC7   (0x1DU)
 
#define GCM_ADC   (0x1EU)
 
#define GCM_AC_DIG   (0x1FU)
 
#define GCM_AC_ANA   (0x20U)
 
#define GCM_DAC   (0x21U)
 
#define GCM_PTC   (0x22U)
 
#define GCM_I2S_0   (0x23U)
 
#define GCM_I2S_1   (0x24U)
 

Définitions de type

typedef enum _EAnalogChannel EAnalogChannel
 
typedef enum _ETCChannel ETCChannel
 
typedef enum _EPWMChannel EPWMChannel
 
typedef enum _EPortType EPortType
 
typedef enum _EPioType EPioType
 
typedef struct _PinDescription PinDescription
 

Énumérations

enum  _EAnalogChannel {
  No_ADC_Channel =-1, ADC_Channel0 =0, ADC_Channel1 =1, ADC_Channel2 =2,
  ADC_Channel3 =3, ADC_Channel4 =4, ADC_Channel5 =5, ADC_Channel6 =6,
  ADC_Channel7 =7, ADC_Channel10 =10, ADC_Channel11 =11, ADC_Channel16 =16,
  ADC_Channel17 =17, ADC_Channel18 =18, ADC_Channel19 =19, DAC_Channel0
}
 
enum  _ETCChannel {
  NOT_ON_TIMER =-1, TCC0_CH0 = (0<<8)|(0), TCC0_CH1 = (0<<8)|(1), TCC0_CH2 = (0<<8)|(2),
  TCC0_CH3 = (0<<8)|(3), TCC0_CH4 = (0<<8)|(0), TCC0_CH5 = (0<<8)|(1), TCC0_CH6 = (0<<8)|(2),
  TCC0_CH7 = (0<<8)|(3), TCC1_CH0 = (1<<8)|(0), TCC1_CH1 = (1<<8)|(1), TCC1_CH2 = (1<<8)|(0),
  TCC1_CH3 = (1<<8)|(1), TCC2_CH0 = (2<<8)|(0), TCC2_CH1 = (2<<8)|(1), TCC2_CH2 = (2<<8)|(0),
  TCC2_CH3 = (2<<8)|(1), TC3_CH0 = (3<<8)|(0), TC3_CH1 = (3<<8)|(1), TC4_CH0 = (4<<8)|(0),
  TC4_CH1 = (4<<8)|(1), TC5_CH0 = (5<<8)|(0), TC5_CH1 = (5<<8)|(1)
}
 
enum  _EPWMChannel {
  NOT_ON_PWM =-1, PWM0_CH0 =TCC0_CH0, PWM0_CH1 =TCC0_CH1, PWM0_CH2 =TCC0_CH2,
  PWM0_CH3 =TCC0_CH3, PWM0_CH4 =TCC0_CH4, PWM0_CH5 =TCC0_CH5, PWM0_CH6 =TCC0_CH6,
  PWM0_CH7 =TCC0_CH7, PWM1_CH0 =TCC1_CH0, PWM1_CH1 =TCC1_CH1, PWM1_CH2 =TCC1_CH2,
  PWM1_CH3 =TCC1_CH3, PWM2_CH0 =TCC2_CH0, PWM2_CH1 =TCC2_CH1, PWM2_CH2 =TCC2_CH2,
  PWM2_CH3 =TCC2_CH3, PWM3_CH0 =TC3_CH0, PWM3_CH1 =TC3_CH1, PWM4_CH0 =TC4_CH0,
  PWM4_CH1 =TC4_CH1, PWM5_CH0 =TC5_CH0, PWM5_CH1 =TC5_CH1
}
 
enum  _EPortType { NOT_A_PORT =-1, PORTA =0, PORTB =1, PORTC =2 }
 
enum  EExt_Interrupts {
  EXTERNAL_INT_0 = 0, EXTERNAL_INT_1, EXTERNAL_INT_2, EXTERNAL_INT_3,
  EXTERNAL_INT_4, EXTERNAL_INT_5, EXTERNAL_INT_6, EXTERNAL_INT_7,
  EXTERNAL_INT_8, EXTERNAL_INT_9, EXTERNAL_INT_10, EXTERNAL_INT_11,
  EXTERNAL_INT_12, EXTERNAL_INT_13, EXTERNAL_INT_14, EXTERNAL_INT_15,
  EXTERNAL_INT_NMI, EXTERNAL_NUM_INTERRUPTS, NOT_AN_INTERRUPT = -1, EXTERNAL_INT_NONE = NOT_AN_INTERRUPT
}
 
enum  _EPioType {
  PIO_NOT_A_PIN =-1, PIO_EXTINT =0, PIO_ANALOG, PIO_SERCOM,
  PIO_SERCOM_ALT, PIO_TIMER, PIO_TIMER_ALT, PIO_COM,
  PIO_AC_CLK, PIO_DIGITAL, PIO_INPUT, PIO_INPUT_PULLUP,
  PIO_OUTPUT, PIO_PWM =PIO_TIMER, PIO_PWM_ALT =PIO_TIMER_ALT
}
 

Variables

const void * g_apTCInstances [TCC_INST_NUM+TC_INST_NUM]
 
const PinDescription g_APinDescription []
 

Documentation des macros

◆ GCM_AC_ANA

#define GCM_AC_ANA   (0x20U)

◆ GCM_AC_DIG

#define GCM_AC_DIG   (0x1FU)

◆ GCM_ADC

#define GCM_ADC   (0x1EU)

◆ GCM_DAC

#define GCM_DAC   (0x21U)

◆ GCM_DFLL48M_REF

#define GCM_DFLL48M_REF   (0x00U)

◆ GCM_EIC

#define GCM_EIC   (0x05U)

◆ GCM_EVSYS_CHANNEL_0

#define GCM_EVSYS_CHANNEL_0   (0x07U)

◆ GCM_EVSYS_CHANNEL_1

#define GCM_EVSYS_CHANNEL_1   (0x08U)

◆ GCM_EVSYS_CHANNEL_10

#define GCM_EVSYS_CHANNEL_10   (0x11U)

◆ GCM_EVSYS_CHANNEL_11

#define GCM_EVSYS_CHANNEL_11   (0x12U)

◆ GCM_EVSYS_CHANNEL_2

#define GCM_EVSYS_CHANNEL_2   (0x09U)

◆ GCM_EVSYS_CHANNEL_3

#define GCM_EVSYS_CHANNEL_3   (0x0AU)

◆ GCM_EVSYS_CHANNEL_4

#define GCM_EVSYS_CHANNEL_4   (0x0BU)

◆ GCM_EVSYS_CHANNEL_5

#define GCM_EVSYS_CHANNEL_5   (0x0CU)

◆ GCM_EVSYS_CHANNEL_6

#define GCM_EVSYS_CHANNEL_6   (0x0DU)

◆ GCM_EVSYS_CHANNEL_7

#define GCM_EVSYS_CHANNEL_7   (0x0EU)

◆ GCM_EVSYS_CHANNEL_8

#define GCM_EVSYS_CHANNEL_8   (0x0FU)

◆ GCM_EVSYS_CHANNEL_9

#define GCM_EVSYS_CHANNEL_9   (0x10U)

◆ GCM_FDPLL96M_32K

#define GCM_FDPLL96M_32K   (0x02U)

◆ GCM_FDPLL96M_INPUT

#define GCM_FDPLL96M_INPUT   (0x01U)

◆ GCM_I2S_0

#define GCM_I2S_0   (0x23U)

◆ GCM_I2S_1

#define GCM_I2S_1   (0x24U)

◆ GCM_PTC

#define GCM_PTC   (0x22U)

◆ GCM_RTC

#define GCM_RTC   (0x04U)

◆ GCM_SERCOM0_CORE

#define GCM_SERCOM0_CORE   (0x14U)

◆ GCM_SERCOM1_CORE

#define GCM_SERCOM1_CORE   (0x15U)

◆ GCM_SERCOM2_CORE

#define GCM_SERCOM2_CORE   (0x16U)

◆ GCM_SERCOM3_CORE

#define GCM_SERCOM3_CORE   (0x17U)

◆ GCM_SERCOM4_CORE

#define GCM_SERCOM4_CORE   (0x18U)

◆ GCM_SERCOM5_CORE

#define GCM_SERCOM5_CORE   (0x19U)

◆ GCM_SERCOMx_SLOW

#define GCM_SERCOMx_SLOW   (0x13U)

◆ GCM_TC4_TC5

#define GCM_TC4_TC5   (0x1CU)

◆ GCM_TC6_TC7

#define GCM_TC6_TC7   (0x1DU)

◆ GCM_TCC0_TCC1

#define GCM_TCC0_TCC1   (0x1AU)

◆ GCM_TCC2_TC3

#define GCM_TCC2_TC3   (0x1BU)

◆ GCM_USB

#define GCM_USB   (0x06U)

◆ GCM_WDT

#define GCM_WDT   (0x03U)

◆ GetTC

#define GetTC (   x)    ( g_apTCInstances[(x) >> 8] )

◆ GetTCChannelNumber

#define GetTCChannelNumber (   x)    ( (x) & 0xff )

◆ GetTCNumber

#define GetTCNumber (   x)    ( (x) >> 8 )

◆ PIN_ATTR_ANALOG

#define PIN_ATTR_ANALOG   (1UL<<1)

◆ PIN_ATTR_COMBO

#define PIN_ATTR_COMBO   (1UL<<0)

◆ PIN_ATTR_DIGITAL

#define PIN_ATTR_DIGITAL   (1UL<<2)

◆ PIN_ATTR_EXTINT

#define PIN_ATTR_EXTINT   (1UL<<6)

◆ PIN_ATTR_NONE

#define PIN_ATTR_NONE   (0UL<<0)

Pin Attributes to be OR-ed

◆ PIN_ATTR_PWM

#define PIN_ATTR_PWM   (1UL<<3)

◆ PIN_ATTR_TIMER

#define PIN_ATTR_TIMER   (1UL<<4)

◆ PIN_ATTR_TIMER_ALT

#define PIN_ATTR_TIMER_ALT   (1UL<<5)

Documentation des définitions de type

◆ EAnalogChannel

◆ EPioType

typedef enum _EPioType EPioType

◆ EPortType

typedef enum _EPortType EPortType

◆ EPWMChannel

typedef enum _EPWMChannel EPWMChannel

◆ ETCChannel

typedef enum _ETCChannel ETCChannel

◆ PinDescription

Documentation du type de l'énumération

◆ _EAnalogChannel

Valeurs énumérées
No_ADC_Channel 
ADC_Channel0 
ADC_Channel1 
ADC_Channel2 
ADC_Channel3 
ADC_Channel4 
ADC_Channel5 
ADC_Channel6 
ADC_Channel7 
ADC_Channel10 
ADC_Channel11 
ADC_Channel16 
ADC_Channel17 
ADC_Channel18 
ADC_Channel19 
DAC_Channel0 

◆ _EPioType

enum _EPioType
Valeurs énumérées
PIO_NOT_A_PIN 
PIO_EXTINT 
PIO_ANALOG 
PIO_SERCOM 
PIO_SERCOM_ALT 
PIO_TIMER 
PIO_TIMER_ALT 
PIO_COM 
PIO_AC_CLK 
PIO_DIGITAL 
PIO_INPUT 
PIO_INPUT_PULLUP 
PIO_OUTPUT 
PIO_PWM 
PIO_PWM_ALT 

◆ _EPortType

enum _EPortType
Valeurs énumérées
NOT_A_PORT 
PORTA 
PORTB 
PORTC 

◆ _EPWMChannel

Valeurs énumérées
NOT_ON_PWM 
PWM0_CH0 
PWM0_CH1 
PWM0_CH2 
PWM0_CH3 
PWM0_CH4 
PWM0_CH5 
PWM0_CH6 
PWM0_CH7 
PWM1_CH0 
PWM1_CH1 
PWM1_CH2 
PWM1_CH3 
PWM2_CH0 
PWM2_CH1 
PWM2_CH2 
PWM2_CH3 
PWM3_CH0 
PWM3_CH1 
PWM4_CH0 
PWM4_CH1 
PWM5_CH0 
PWM5_CH1 

◆ _ETCChannel

Valeurs énumérées
NOT_ON_TIMER 
TCC0_CH0 
TCC0_CH1 
TCC0_CH2 
TCC0_CH3 
TCC0_CH4 
TCC0_CH5 
TCC0_CH6 
TCC0_CH7 
TCC1_CH0 
TCC1_CH1 
TCC1_CH2 
TCC1_CH3 
TCC2_CH0 
TCC2_CH1 
TCC2_CH2 
TCC2_CH3 
TC3_CH0 
TC3_CH1 
TC4_CH0 
TC4_CH1 
TC5_CH0 
TC5_CH1 

◆ EExt_Interrupts

Valeurs énumérées
EXTERNAL_INT_0 
EXTERNAL_INT_1 
EXTERNAL_INT_2 
EXTERNAL_INT_3 
EXTERNAL_INT_4 
EXTERNAL_INT_5 
EXTERNAL_INT_6 
EXTERNAL_INT_7 
EXTERNAL_INT_8 
EXTERNAL_INT_9 
EXTERNAL_INT_10 
EXTERNAL_INT_11 
EXTERNAL_INT_12 
EXTERNAL_INT_13 
EXTERNAL_INT_14 
EXTERNAL_INT_15 
EXTERNAL_INT_NMI 
EXTERNAL_NUM_INTERRUPTS 
NOT_AN_INTERRUPT 
EXTERNAL_INT_NONE 

Documentation des variables

◆ g_APinDescription

const PinDescription g_APinDescription[]

◆ g_apTCInstances

const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM]