Classes | Macros | Fonctions
Référence du fichier HardwareSerial.h
#include <inttypes.h>
#include "Stream.h"

Classes

class  HardwareSerial
 

Macros

#define HARDSER_PARITY_EVEN   (0x1ul)
 
#define HARDSER_PARITY_ODD   (0x2ul)
 
#define HARDSER_PARITY_NONE   (0x3ul)
 
#define HARDSER_PARITY_MASK   (0xFul)
 
#define HARDSER_STOP_BIT_1   (0x10ul)
 
#define HARDSER_STOP_BIT_1_5   (0x20ul)
 
#define HARDSER_STOP_BIT_2   (0x30ul)
 
#define HARDSER_STOP_BIT_MASK   (0xF0ul)
 
#define HARDSER_DATA_5   (0x100ul)
 
#define HARDSER_DATA_6   (0x200ul)
 
#define HARDSER_DATA_7   (0x300ul)
 
#define HARDSER_DATA_8   (0x400ul)
 
#define HARDSER_DATA_MASK   (0xF00ul)
 
#define SERIAL_5N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_5)
 
#define SERIAL_6N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_6)
 
#define SERIAL_7N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_7)
 
#define SERIAL_8N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_8)
 
#define SERIAL_5N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_5)
 
#define SERIAL_6N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_6)
 
#define SERIAL_7N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_7)
 
#define SERIAL_8N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_8)
 
#define SERIAL_5E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_5)
 
#define SERIAL_6E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_6)
 
#define SERIAL_7E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_7)
 
#define SERIAL_8E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_8)
 
#define SERIAL_5E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_5)
 
#define SERIAL_6E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_6)
 
#define SERIAL_7E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_7)
 
#define SERIAL_8E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_8)
 
#define SERIAL_5O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_5)
 
#define SERIAL_6O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_6)
 
#define SERIAL_7O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_7)
 
#define SERIAL_8O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_8)
 
#define SERIAL_5O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_5)
 
#define SERIAL_6O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_6)
 
#define SERIAL_7O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_7)
 
#define SERIAL_8O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_8)
 

Fonctions

void serialEventRun (void) __attribute__((weak))
 

Documentation des macros

◆ HARDSER_DATA_5

#define HARDSER_DATA_5   (0x100ul)

◆ HARDSER_DATA_6

#define HARDSER_DATA_6   (0x200ul)

◆ HARDSER_DATA_7

#define HARDSER_DATA_7   (0x300ul)

◆ HARDSER_DATA_8

#define HARDSER_DATA_8   (0x400ul)

◆ HARDSER_DATA_MASK

#define HARDSER_DATA_MASK   (0xF00ul)

◆ HARDSER_PARITY_EVEN

#define HARDSER_PARITY_EVEN   (0x1ul)

◆ HARDSER_PARITY_MASK

#define HARDSER_PARITY_MASK   (0xFul)

◆ HARDSER_PARITY_NONE

#define HARDSER_PARITY_NONE   (0x3ul)

◆ HARDSER_PARITY_ODD

#define HARDSER_PARITY_ODD   (0x2ul)

◆ HARDSER_STOP_BIT_1

#define HARDSER_STOP_BIT_1   (0x10ul)

◆ HARDSER_STOP_BIT_1_5

#define HARDSER_STOP_BIT_1_5   (0x20ul)

◆ HARDSER_STOP_BIT_2

#define HARDSER_STOP_BIT_2   (0x30ul)

◆ HARDSER_STOP_BIT_MASK

#define HARDSER_STOP_BIT_MASK   (0xF0ul)

◆ SERIAL_5E1

#define SERIAL_5E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_5)

◆ SERIAL_5E2

#define SERIAL_5E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_5)

◆ SERIAL_5N1

#define SERIAL_5N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_5)

◆ SERIAL_5N2

#define SERIAL_5N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_5)

◆ SERIAL_5O1

#define SERIAL_5O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_5)

◆ SERIAL_5O2

#define SERIAL_5O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_5)

◆ SERIAL_6E1

#define SERIAL_6E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_6)

◆ SERIAL_6E2

#define SERIAL_6E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_6)

◆ SERIAL_6N1

#define SERIAL_6N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_6)

◆ SERIAL_6N2

#define SERIAL_6N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_6)

◆ SERIAL_6O1

#define SERIAL_6O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_6)

◆ SERIAL_6O2

#define SERIAL_6O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_6)

◆ SERIAL_7E1

#define SERIAL_7E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_7)

◆ SERIAL_7E2

#define SERIAL_7E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_7)

◆ SERIAL_7N1

#define SERIAL_7N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_7)

◆ SERIAL_7N2

#define SERIAL_7N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_7)

◆ SERIAL_7O1

#define SERIAL_7O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_7)

◆ SERIAL_7O2

#define SERIAL_7O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_7)

◆ SERIAL_8E1

#define SERIAL_8E1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_8)

◆ SERIAL_8E2

#define SERIAL_8E2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_EVEN | HARDSER_DATA_8)

◆ SERIAL_8N1

#define SERIAL_8N1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_8)

◆ SERIAL_8N2

#define SERIAL_8N2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_8)

◆ SERIAL_8O1

#define SERIAL_8O1   (HARDSER_STOP_BIT_1 | HARDSER_PARITY_ODD | HARDSER_DATA_8)

◆ SERIAL_8O2

#define SERIAL_8O2   (HARDSER_STOP_BIT_2 | HARDSER_PARITY_ODD | HARDSER_DATA_8)

Documentation des fonctions

◆ serialEventRun()

void serialEventRun ( void  )