microchip harmony生成的函数 参数定义

2019-03-25 18:46发布

采用 microchip harmony 配置生成的IO口设置函数,如下的 mask 参数如何给值?? 将数字IO口设置为1
void SYS_PORTS_Set( PORTS_MODULE_ID index, PORTS_CHANNEL channel,
                    PORTS_DATA_TYPE value,
                    PORTS_DATA_MASK mask );

此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
4条回答
viphotman
1楼-- · 2019-03-25 21:43
追踪到函数声明处看有说明没有
rayhui100
2楼-- · 2019-03-26 01:09
viphotman 发表于 2018-6-6 17:21
追踪到函数声明处看有说明没有

Parameters:
    index           - Identifier for the device instance to be configured
    channel         - Identifier for the PORT channel: A, B, C, etc.
    value           - Consists of information about which port bit has to be set
    mask            - Identifies the bits which could be intended for setting
rayhui100
3楼-- · 2019-03-26 06:07
viphotman 发表于 2018-6-6 17:21
追踪到函数声明处看有说明没有

Parameters:
    index           - Identifier for the device instance to be configured
    channel         - Identifier for the PORT channel: A, B, C, etc.
    value           - Consists of information about which port bit has to be set
    mask            - Identifies the bits which could be intended for setting


这是 定义参数的 描述
viphotman
4楼-- · 2019-03-26 07:48
这应该在source code里都可以找到意义的,mask 应该是指某些位屏蔽不动,你要设置A B C 端口某些位的话,这里mask用0试试;

一周热门 更多>