XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:SPI:主机模式控制器 更多...
#include <xwcd/ds/standard.h>
#include <xwos/lib/xwlog.h>
#include <xwos/osal/lock/mtx.h>
#include <xwcd/ds/spi/master.h>
函数 | |
static xwer_t | xwds_spim_vop_probe (struct xwds_spim *spim) |
XWDS VOP:探测设备 | |
static xwer_t | xwds_spim_vop_remove (struct xwds_spim *spim) |
XWDS VOP:删除设备 | |
static xwer_t | xwds_spim_vop_start (struct xwds_spim *spim) |
XWDS VOP:启动设备 | |
static xwer_t | xwds_spim_vop_stop (struct xwds_spim *spim) |
XWDS VOP:停止设备 | |
static xwer_t | xwds_spim_vop_suspend (struct xwds_spim *spim) |
XWDS VOP:暂停设备 | |
static xwer_t | xwds_spim_vop_resume (struct xwds_spim *spim) |
XWDS VOP:继续设备 | |
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总线传输 | |
变量 | |
const struct xwds_virtual_operation | xwds_spim_vop |
玄武设备栈: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.c 中定义.
XWDS VOP:探测设备
[in] | spim | SPI主机模式控制器对象指针 |
<No error
XWDS VOP:删除设备
[in] | spim | SPI主机模式控制器对象指针 |
<No error
XWDS VOP:继续设备
[in] | spim | SPI主机模式控制器对象指针 |
XWDS VOP:启动设备
[in] | spim | SPI主机模式控制器对象指针 |
XWDS VOP:停止设备
[in] | spim | SPI主机模式控制器对象指针 |
XWDS VOP:暂停设备
[in] | spim | SPI主机模式控制器对象指针 |
const struct xwds_virtual_operation xwds_spim_vop |