Macros | Définitions de type | Fonctions | Variables
Référence du fichier Arduino.h
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "avr/pgmspace.h"
#include "avr/interrupt.h"
#include "avr/io.h"
#include "binary.h"
#include "itoa.h"
#include "sam.h"
#include "wiring_constants.h"
#include "WVariant.h"
#include "delay.h"
#include "variant.h"
#include "wiring.h"
#include "wiring_digital.h"
#include "wiring_analog.h"
#include "wiring_shift.h"
#include "WInterrupts.h"
#include "USB/USBDesc.h"
#include "USB/USBCore.h"
#include "USB/USBAPI.h"
#include "USB/USB_host.h"

Macros

#define clockCyclesPerMicrosecond()   ( SystemCoreClock / 1000000L )
 
#define clockCyclesToMicroseconds(a)   ( ((a) * 1000L) / (SystemCoreClock / 1000L) )
 
#define microsecondsToClockCycles(a)   ( (a) * (SystemCoreClock / 1000000L) )
 
#define min(a, b)   ((a)<(b)?(a):(b))
 
#define max(a, b)   ((a)>(b)?(a):(b))
 
#define abs(x)   ((x)>0?(x):-(x))
 
#define constrain(amt, low, high)   ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
 
#define round(x)   ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
 
#define radians(deg)   ((deg)*DEG_TO_RAD)
 
#define degrees(rad)   ((rad)*RAD_TO_DEG)
 
#define sq(x)   ((x)*(x))
 
#define interrupts()   __enable_irq()
 
#define noInterrupts()   __disable_irq()
 
#define lowByte(w)   ((uint8_t) ((w) & 0xff))
 
#define highByte(w)   ((uint8_t) ((w) >> 8))
 
#define bitRead(value, bit)   (((value) >> (bit)) & 0x01)
 
#define bitSet(value, bit)   ((value) |= (1UL << (bit)))
 
#define bitClear(value, bit)   ((value) &= ~(1UL << (bit)))
 
#define bitWrite(value, bit, bitvalue)   (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
 
#define bit(b)   (1UL << (b))
 
#define ARDUINO_ARCH_SAMD
 

Définitions de type

typedef bool boolean
 
typedef uint8_t byte
 
typedef uint16_t word
 

Fonctions

void yield (void)
 
int main (void)
 
void init (void)
 
void setup (void)
 
void loop (void)
 
void attendre (unsigned long)
 

Variables

int randSeed
 

Documentation des macros

◆ abs

#define abs (   x)    ((x)>0?(x):-(x))

◆ ARDUINO_ARCH_SAMD

#define ARDUINO_ARCH_SAMD

◆ bit

#define bit (   b)    (1UL << (b))

◆ bitClear

#define bitClear (   value,
  bit 
)    ((value) &= ~(1UL << (bit)))

◆ bitRead

#define bitRead (   value,
  bit 
)    (((value) >> (bit)) & 0x01)

◆ bitSet

#define bitSet (   value,
  bit 
)    ((value) |= (1UL << (bit)))

◆ bitWrite

#define bitWrite (   value,
  bit,
  bitvalue 
)    (bitvalue ? bitSet(value, bit) : bitClear(value, bit))

◆ clockCyclesPerMicrosecond

#define clockCyclesPerMicrosecond ( )    ( SystemCoreClock / 1000000L )

◆ clockCyclesToMicroseconds

#define clockCyclesToMicroseconds (   a)    ( ((a) * 1000L) / (SystemCoreClock / 1000L) )

◆ constrain

#define constrain (   amt,
  low,
  high 
)    ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))

◆ degrees

#define degrees (   rad)    ((rad)*RAD_TO_DEG)

◆ highByte

#define highByte (   w)    ((uint8_t) ((w) >> 8))

◆ interrupts

#define interrupts ( )    __enable_irq()

◆ lowByte

#define lowByte (   w)    ((uint8_t) ((w) & 0xff))

◆ max

#define max (   a,
 
)    ((a)>(b)?(a):(b))

◆ microsecondsToClockCycles

#define microsecondsToClockCycles (   a)    ( (a) * (SystemCoreClock / 1000000L) )

◆ min

#define min (   a,
 
)    ((a)<(b)?(a):(b))

◆ noInterrupts

#define noInterrupts ( )    __disable_irq()

◆ radians

#define radians (   deg)    ((deg)*DEG_TO_RAD)

◆ round

#define round (   x)    ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

◆ sq

#define sq (   x)    ((x)*(x))

Documentation des définitions de type

◆ boolean

typedef bool boolean

◆ byte

typedef uint8_t byte

◆ word

typedef uint16_t word

Documentation des fonctions

◆ attendre()

void attendre ( unsigned long  )

◆ init()

void init ( void  )

◆ loop()

void loop ( void  )

◆ main()

int main ( void  )

◆ setup()

void setup ( void  )

◆ yield()

void yield ( void  )

SysTick hook

This function is called from SysTick handler, before the default handler provided by Arduino.

Documentation des variables

◆ randSeed

int randSeed