XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:SPI:主机模式控制器 更多...
#include <xwcd/ds/standard.h>
#include <xwos/lib/xwbop.h>
#include <xwos/osal/lock/mtx.h>
#include <xwcd/ds/device.h>
结构体 | |
struct | xwds_spim_driver |
BSP中需要提供的SPI主机模式控制器驱动函数表 更多... | |
struct | xwds_spim |
SPI主机模式控制器 更多... | |
函数 | |
void | xwds_spim_construct (struct xwds_spim *spim) |
XWDS API:SPI主机模式控制器对象的构造函数 | |
void | xwds_spim_destruct (struct xwds_spim *spim) |
XWDS API:SPI主机模式控制器对象的析构函数 | |
xwer_t | xwds_spim_grab (struct xwds_spim *spim) |
XWDS API:增加对象的引用计数 | |
xwer_t | xwds_spim_put (struct xwds_spim *spim) |
XWDS API:减少对象的引用计数 | |
xwer_t | xwds_spim_xfer (struct xwds_spim *spim, xwid_t cfgid, const xwu8_t txd[], xwu8_t *rxb, xwsz_t *size, xwtm_t to) |
XWDS API:启动SPI总线传输 | |
xwer_t | xwds_spim_abort (struct xwds_spim *spim, xwtm_t to) |
XWDS API:中止SPI总线传输 | |
玄武设备栈:SPI:主机模式控制器
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
在文件 master.h 中定义.