本文整理汇总了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 */
}
示例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) */
}
示例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) */
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}