本文整理汇总了C++中CyPins_SetPinDriveMode函数的典型用法代码示例。如果您正苦于以下问题:C++ CyPins_SetPinDriveMode函数的具体用法?C++ CyPins_SetPinDriveMode怎么用?C++ CyPins_SetPinDriveMode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CyPins_SetPinDriveMode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: selectPin_SetDriveMode
/*******************************************************************************
* Function Name: selectPin_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void selectPin_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(selectPin_0, mode);
}
示例2: Pressure_SDA_SetDriveMode
/*******************************************************************************
* Function Name: Pressure_SDA_SetDriveMode
********************************************************************************
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* void
*
*******************************************************************************/
void Pressure_SDA_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Pressure_SDA_0, mode);
}
示例3: Pin_LED_SetDriveMode
/*******************************************************************************
* Function Name: Pin_LED_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void Pin_LED_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Pin_LED_0, mode);
}
示例4: dc_SetDriveMode
/*******************************************************************************
* Function Name: dc_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to one of the following drive modes.
*
* dc_DM_STRONG Strong Drive
* dc_DM_OD_HI Open Drain, Drives High
* dc_DM_OD_LO Open Drain, Drives Low
* dc_DM_RES_UP Resistive Pull Up
* dc_DM_RES_DWN Resistive Pull Down
* dc_DM_RES_UPDWN Resistive Pull Up/Down
* dc_DM_DIG_HIZ High Impedance Digital
* dc_DM_ALG_HIZ High Impedance Analog
*
* Return:
* None
*
*******************************************************************************/
void dc_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(dc_0, mode);
}
示例5: Pin_Play_Pause_SetDriveMode
/*******************************************************************************
* Function Name: Pin_Play_Pause_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void Pin_Play_Pause_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Pin_Play_Pause_0, mode);
}
示例6: Servo1_SetDriveMode
/*******************************************************************************
* Function Name: Servo1_SetDriveMode
********************************************************************************
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* void
*
*******************************************************************************/
void Servo1_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Servo1_0, mode);
}
示例7: A_HS_SetDriveMode
/*******************************************************************************
* Function Name: A_HS_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void A_HS_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(A_HS_0, mode);
}
示例8: LCD_RST_SetDriveMode
/*******************************************************************************
* Function Name: LCD_RST_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void LCD_RST_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(LCD_RST_0, mode);
}
示例9: Fin_SetDriveMode
/*******************************************************************************
* Function Name: Fin_SetDriveMode
********************************************************************************
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* void
*
*******************************************************************************/
void Fin_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Fin_0, mode);
}
示例10: Opamp3_Neg_SetDriveMode
/*******************************************************************************
* Function Name: Opamp3_Neg_SetDriveMode
****************************************************************************//**
*
* \brief Sets the drive mode for each of the Pins component's pins.
*
* <b>Note</b> This affects all pins in the Pins component instance. Use the
* Per-Pin APIs if you wish to control individual pin's drive modes.
*
* \param mode
* Mode for the selected signals. Valid options are documented in
* \ref driveMode.
*
* \return
* None
*
* \sideeffect
* If you use read-modify-write operations that are not atomic, the ISR can
* cause corruption of this function. An ISR that interrupts this function
* and performs writes to the Pins component Drive Mode registers can cause
* corrupted port data. To avoid this issue, you should either use the Per-Pin
* APIs (primary method) or disable interrupts around this function.
*
* \funcusage
* \snippet Opamp3_Neg_SUT.c usage_Opamp3_Neg_SetDriveMode
*******************************************************************************/
void Opamp3_Neg_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Opamp3_Neg_0, mode);
}
示例11: OSC2_Hard_Sync_1_SetDriveMode
/*******************************************************************************
* Function Name: OSC2_Hard_Sync_1_SetDriveMode
****************************************************************************//**
*
* \brief Sets the drive mode for each of the Pins component's pins.
*
* <b>Note</b> This affects all pins in the Pins component instance. Use the
* Per-Pin APIs if you wish to control individual pin's drive modes.
*
* \param mode
* Mode for the selected signals. Valid options are documented in
* \ref driveMode.
*
* \return
* None
*
* \sideeffect
* If you use read-modify-write operations that are not atomic, the ISR can
* cause corruption of this function. An ISR that interrupts this function
* and performs writes to the Pins component Drive Mode registers can cause
* corrupted port data. To avoid this issue, you should either use the Per-Pin
* APIs (primary method) or disable interrupts around this function.
*
* \funcusage
* \snippet OSC2_Hard_Sync_1_SUT.c usage_OSC2_Hard_Sync_1_SetDriveMode
*******************************************************************************/
void OSC2_Hard_Sync_1_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(OSC2_Hard_Sync_1_0, mode);
}
示例12: Pin_BrightLEDBlue_SetDriveMode
/*******************************************************************************
* Function Name: Pin_BrightLEDBlue_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void Pin_BrightLEDBlue_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(Pin_BrightLEDBlue_0, mode);
}
示例13: P3_4_SetDriveMode
/*******************************************************************************
* Function Name: P3_4_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to one of the following drive modes.
*
* P3_4_DM_STRONG Strong Drive
* P3_4_DM_OD_HI Open Drain, Drives High
* P3_4_DM_OD_LO Open Drain, Drives Low
* P3_4_DM_RES_UP Resistive Pull Up
* P3_4_DM_RES_DWN Resistive Pull Down
* P3_4_DM_RES_UPDWN Resistive Pull Up/Down
* P3_4_DM_DIG_HIZ High Impedance Digital
* P3_4_DM_ALG_HIZ High Impedance Analog
*
* Return:
* None
*
*******************************************************************************/
void P3_4_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(P3_4_0, mode);
}
示例14: SD_MOSI_SetDriveMode
/*******************************************************************************
* Function Name: SD_MOSI_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to one of the following drive modes.
*
* SD_MOSI_DM_STRONG Strong Drive
* SD_MOSI_DM_OD_HI Open Drain, Drives High
* SD_MOSI_DM_OD_LO Open Drain, Drives Low
* SD_MOSI_DM_RES_UP Resistive Pull Up
* SD_MOSI_DM_RES_DWN Resistive Pull Down
* SD_MOSI_DM_RES_UPDWN Resistive Pull Up/Down
* SD_MOSI_DM_DIG_HIZ High Impedance Digital
* SD_MOSI_DM_ALG_HIZ High Impedance Analog
*
* Return:
* None
*
*******************************************************************************/
void SD_MOSI_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(SD_MOSI_0, mode);
}
示例15: PSOC_SW_SetDriveMode
/*******************************************************************************
* Function Name: PSOC_SW_SetDriveMode
********************************************************************************
*
* Summary:
* Change the drive mode on the pins of the port.
*
* Parameters:
* mode: Change the pins to this drive mode.
*
* Return:
* None
*
*******************************************************************************/
void PSOC_SW_SetDriveMode(uint8 mode)
{
CyPins_SetPinDriveMode(PSOC_SW_0, mode);
}