構成 | 列挙型 | 変数
src/uart.h

Arduino-like library for MARY(LPC1114) [詳細]

#include "LPC11xx.h"

ソースコードを見る。

構成

class  USerial

列挙型

enum  SERIAL_PORT { marySerial1, mbedSerial1, mbedSerial2 }
 COMポート(UART)のチャンネル選択。 [詳細]
enum  SERIAL_FORMAT {
  BYTE = 0x01, BIN = 0x02, OCT = 0x08, DEC = 0x0A,
  HEX = 0x10
}
 Arduinoのprint(data, format)の第二パラメータ(format)の基数。 [詳細]

変数

const char radix_bin [] = "01"
const char radix_oct [] = "01234567"
const char radix_dec [] = "0123456789"
const char radix_hex [] = "0123456789ABCDEF"

説明

Arduino-like library for MARY(LPC1114)

バージョン:
v.0.50
日付:
1. August 2011.
作者:
@lynxeyed_atsu
覚え書き:
Copyright (c) 2011 Lynx-EyED's Klavier and Craft-works.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

列挙型

Arduinoのprint(data, format)の第二パラメータ(format)の基数。

列挙型の値:
BYTE 

1バイトのアスキーコードが表示される

BIN 

dataで与えられた数値を2進数で表示する

OCT 

dataで与えられた数値を8進数で表示する

DEC 

dataで与えられた数値を10進数で表示する

HEX 

dataで与えられた数値を16進数で表示する

COMポート(UART)のチャンネル選択。

覚え書き:
UARTが1ポートしかないMARYでは使用していないので特に影響はないが、2ポート以上UARTが存在するLPCXpressoシリーズや mbedシリーズとの後方互換性を考慮し用意している
列挙型の値:
marySerial1 

MARYのUARTポート(デフォルト)

mbedSerial1 

mbed(LPC1768/9)のUART1ポート(将来的に対応予定)

mbedSerial2 

mbed(LPC1768/9)のUART2ポート(将来的に対応予定)

 全て クラス ファイル 関数 変数 列挙型 列挙型の値 マクロ定義