Skip to content

HardwareSerial

詳細情報

メンバー

HardwareSerial()

HardwareSerial::HardwareSerial(int uart_nr)

引数

  • int uart_nr

begin()

void HardwareSerial::begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms=20000UL)

引数

  • unsigned long baud
  • uint32_t config
  • int8_t rxPin
  • int8_t txPin
  • bool invert
  • unsigned long timeout_ms

end()

void HardwareSerial::end()

updateBaudRate()

void HardwareSerial::updateBaudRate(unsigned long baud)

引数

  • unsigned long baud

available()

int HardwareSerial::available(void)

戻り値

int

availableForWrite()

int HardwareSerial::availableForWrite(void)

戻り値

int

peek()

int HardwareSerial::peek(void)

戻り値

int

read()

int HardwareSerial::read(void)

戻り値

int

flush()

void HardwareSerial::flush(void)

write()

size_t HardwareSerial::write(uint8_t)

引数

  • uint8_t ``

戻り値

size_t

write()

size_t HardwareSerial::write(const uint8_t *buffer, size_t size)

引数

  • const* buffer
  • size_t size

戻り値

size_t

write()

size_t HardwareSerial::write(const char *s)

引数

  • constchar * s

戻り値

size_t

write()

size_t HardwareSerial::write(unsigned long n)

引数

  • unsigned long n

戻り値

size_t

write()

size_t HardwareSerial::write(long n)

引数

  • long n

戻り値

size_t

write()

size_t HardwareSerial::write(unsigned int n)

引数

  • unsigned int n

戻り値

size_t

write()

size_t HardwareSerial::write(int n)

引数

  • int n

戻り値

size_t

baudRate()

uint32_t HardwareSerial::baudRate()

戻り値

uint32_t

operator bool()

HardwareSerial::operator bool() const

setRxBufferSize()

size_t HardwareSerial::setRxBufferSize(size_t)

引数

  • size_t ``

戻り値

size_t

setDebugOutput()

void HardwareSerial::setDebugOutput(bool)

引数

  • bool ``