您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GPIO_PDD_ClearPortDataOutputMask函数代码示例

51自学网 2021-06-01 20:54:42
  C++
这篇教程C++ GPIO_PDD_ClearPortDataOutputMask函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GPIO_PDD_ClearPortDataOutputMask函数的典型用法代码示例。如果您正苦于以下问题:C++ GPIO_PDD_ClearPortDataOutputMask函数的具体用法?C++ GPIO_PDD_ClearPortDataOutputMask怎么用?C++ GPIO_PDD_ClearPortDataOutputMask使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GPIO_PDD_ClearPortDataOutputMask函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: BitIoLdd4_PutVal

/* ===================================================================*/void BitIoLdd4_PutVal(LDD_TDeviceData *DeviceDataPtr, bool Val){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  if (Val) {    GPIO_PDD_SetPortDataOutputMask(BitIoLdd4_MODULE_BASE_ADDRESS, BitIoLdd4_PORT_MASK);  } else { /* !Val */    GPIO_PDD_ClearPortDataOutputMask(BitIoLdd4_MODULE_BASE_ADDRESS, BitIoLdd4_PORT_MASK);  } /* !Val */}
开发者ID:psh117,项目名称:Jack-Spherobot,代码行数:10,


示例2: GPIO2_ClearFieldBits

/* ===================================================================*/void GPIO2_ClearFieldBits(LDD_TDeviceData *DeviceDataPtr, LDD_GPIO_TBitField Field, GPIO2_TFieldValue Mask){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  switch (Field) {                     /* no break */    case I2C_DAT: {                    /* bit field #0 */      GPIO_PDD_ClearPortDataOutputMask(GPIO2_MODULE_BASE_ADDRESS,        ((GPIO2_TPortValue)GPIO2_I2C_DAT_MASK)        & ((GPIO2_TPortValue)(Mask << GPIO2_I2C_DAT_START_BIT))      );      break;    }    case I2C_CLK: {                    /* bit field #1 */      GPIO_PDD_ClearPortDataOutputMask(GPIO2_MODULE_BASE_ADDRESS,        ((GPIO2_TPortValue)GPIO2_I2C_CLK_MASK)        & ((GPIO2_TPortValue)(Mask << GPIO2_I2C_CLK_START_BIT))      );      break;    }    default:      break;                           /* Invalid Field is not treated, result is undefined */  } /* switch (Field) */}
开发者ID:geliang201201,项目名称:CO2_Sensor,代码行数:23,


示例3: LEDRed_ClearFieldBits

/* ===================================================================*/void LEDRed_ClearFieldBits(LDD_TDeviceData *DeviceDataPtr, LDD_GPIO_TBitField Field, LEDRed_TFieldValue Mask){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  switch (Field) {                     /* no break */    case LED_RED: {                    /* bit field #0 */      GPIO_PDD_ClearPortDataOutputMask(LEDRed_MODULE_BASE_ADDRESS,        ((LEDRed_TPortValue)LEDRed_LED_RED_MASK)        & ((LEDRed_TPortValue)(Mask << LEDRed_LED_RED_START_BIT))      );      break;    }    default:      break;                           /* Invalid Field is not treated, result is undefined */  } /* switch (Field) */}
开发者ID:SeismicPi,项目名称:SeismicPi,代码行数:16,


示例4: BitsIoLdd4_ClrBit

/*** ===================================================================**     Method      :  BitsIoLdd4_ClrBit (component BitsIO_LDD)****     Description :**         Clears (sets to zero) the specified bit of the Input/Output**         component. It is the same as [PutBit(Bit, FALSE)]. (Method**         is available only if the Direction = _[output]_ or**         _[input/output]_).**     Parameters  :**         NAME            - DESCRIPTION**       * DeviceDataPtr   - Pointer to device data**                           structure pointer.**         Bit             - Bit/pin number to clear**     Returns     :**         ---             - Error code, possible values:**                           ERR_OK - OK**                           ERR_PARAM_MASK - Invalid pin mask** ===================================================================*/LDD_TError BitsIoLdd4_ClrBit(LDD_TDeviceData *DeviceDataPtr, byte Bit){  uint32_t mask = 0;  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  /* Bit number value - this test can be disabled by setting the "Ignore range checking"     property to the "yes" value in the "Configuration inspector" */  if (Bit > 3U) {    return ERR_PARAM_MASK;  }  mask = BitsIoLdd4_PIN_MASK_MAP[Bit];  GPIO_PDD_ClearPortDataOutputMask(BitsIoLdd4_MODULE_BASE_ADDRESS, mask);  return ERR_OK;}
开发者ID:kufi,项目名称:pren19-eruca-prenbot,代码行数:37,


示例5: BitIoLdd2_ClrVal

/* ===================================================================*/void BitIoLdd2_ClrVal(LDD_TDeviceData *DeviceDataPtr){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  GPIO_PDD_ClearPortDataOutputMask(BitIoLdd2_MODULE_BASE_ADDRESS, BitIoLdd2_PORT_MASK);}
开发者ID:thihaElec,项目名称:my-git,代码行数:6,


示例6: TraccionTrasera_Direccion_ClrVal

/* ===================================================================*/void TraccionTrasera_Direccion_ClrVal(LDD_TDeviceData *DeviceDataPtr){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  GPIO_PDD_ClearPortDataOutputMask(TraccionTrasera_Direccion_MODULE_BASE_ADDRESS, TraccionTrasera_Direccion_PORT_MASK);}
开发者ID:francodemare,项目名称:RoboTito,代码行数:6,


示例7: SPI_NEXT_SCLK_ClrVal

/* ===================================================================*/void SPI_NEXT_SCLK_ClrVal(LDD_TDeviceData *DeviceDataPtr){  (void)DeviceDataPtr;                 /* Parameter is not used, suppress unused argument warning */  GPIO_PDD_ClearPortDataOutputMask(SPI_NEXT_SCLK_MODULE_BASE_ADDRESS, SPI_NEXT_SCLK_PORT_MASK);}
开发者ID:LoicGuillain,项目名称:Freescale,代码行数:6,



注:本文中的GPIO_PDD_ClearPortDataOutputMask函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ GPIO_PDD_GetPortDataOutput函数代码示例
C++ GPIO_PDDR_PDD函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。