構成 |
class | SSP |
| SPIを制御するクラス [詳細]
|
列挙型 |
enum | SSP_PORT { marySSP1,
mbedSSP1,
mbedSSP2
} |
| SPIポートのチャンネル選択。使用時のCS信号を選択する [詳細]
|
enum | SSP_BIT_ORDER { LSBFIRST,
MSBFIRST
} |
| SSPIバスの入出力に使用するビットオーダーを設定 [詳細]
|
enum | SSP_CLK_DIVIDER {
SPI_CLOCK_DIV1,
SPI_CLOCK_DIV2,
SPI_CLOCK_DIV4,
SPI_CLOCK_DIV8,
SPI_CLOCK_DIV16,
SPI_CLOCK_DIV32,
SPI_CLOCK_DIV64,
SPI_CLOCK_DIV128
} |
| SPIクロック分周器の設定. 分周値は2、4、8、16、32、64、128のいずれか [詳細]
|
enum | SSP_DATA_MODE {
SPI_MODE0,
SPI_MODE1,
SPI_MODE2,
SPI_MODE3,
TI_SERIAL_MODE,
NXP_I2S
} |
| SPIの転送モードの設定 [詳細]
|
関数 |
void | ssp_begin (SSP_CLK_DIVIDER divider, SSP_DATA_MODE dataMode, int bitLength) |
unsigned long | ssp_transfer (unsigned long txdata) |
Arduino-like library for MARY.
- バージョン:
- V0.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.