Example #1
0
/*******************************************************************************
* 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);
}
Example #2
0
/*******************************************************************************
* 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);
}
Example #3
0
/*******************************************************************************
* 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);
}
Example #4
0
/*******************************************************************************
* 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);
}
Example #5
0
/*******************************************************************************
* 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);
}
Example #6
0
/*******************************************************************************
* 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);
}
Example #7
0
/*******************************************************************************
* 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);
}
Example #8
0
/*******************************************************************************
* 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);
}
Example #9
0
/*******************************************************************************
* 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);
}
Example #10
0
/*******************************************************************************
* 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);
}
/*******************************************************************************
* 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);
}
/*******************************************************************************
* 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);
}
Example #13
0
/*******************************************************************************
* 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);
}
Example #14
0
/*******************************************************************************
* 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);
}
Example #15
0
/*******************************************************************************
* 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);
}
Example #16
0
/*******************************************************************************
* Function Name: ADC_SAR_2_Bypass_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void ADC_SAR_2_Bypass_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(ADC_SAR_2_Bypass_0, mode);
}
Example #17
0
/*******************************************************************************
* Function Name: Composite_Video_SetDriveMode
********************************************************************************
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  void
*
*******************************************************************************/
void Composite_Video_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(Composite_Video_0, mode);
}
Example #18
0
/*******************************************************************************
* Function Name: NEOMOTE_1_RX_RTS_n_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void NEOMOTE_1_RX_RTS_n_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(NEOMOTE_1_RX_RTS_n_0, mode);
}
Example #19
0
/*******************************************************************************
* Function Name: stop_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void stop_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(stop_0, mode);
}
Example #20
0
/*******************************************************************************
* Function Name: m_mosi_pin_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  m_mosi_pin_DM_STRONG     Strong Drive 
*  m_mosi_pin_DM_OD_HI      Open Drain, Drives High 
*  m_mosi_pin_DM_OD_LO      Open Drain, Drives Low 
*  m_mosi_pin_DM_RES_UP     Resistive Pull Up 
*  m_mosi_pin_DM_RES_DWN    Resistive Pull Down 
*  m_mosi_pin_DM_RES_UPDWN  Resistive Pull Up/Down 
*  m_mosi_pin_DM_DIG_HIZ    High Impedance Digital 
*  m_mosi_pin_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void m_mosi_pin_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(m_mosi_pin_0, mode);
}
/*******************************************************************************
* Function Name: PSOC_PDM_DataIn_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_PDM_DataIn_SetDriveMode(uint8 mode)
{
    CyPins_SetPinDriveMode(PSOC_PDM_DataIn_0, mode);
}
Example #22
0
/*******************************************************************************
* Function Name: GPIO_5_6_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  GPIO_5_6_DM_STRONG     Strong Drive 
*  GPIO_5_6_DM_OD_HI      Open Drain, Drives High 
*  GPIO_5_6_DM_OD_LO      Open Drain, Drives Low 
*  GPIO_5_6_DM_RES_UP     Resistive Pull Up 
*  GPIO_5_6_DM_RES_DWN    Resistive Pull Down 
*  GPIO_5_6_DM_RES_UPDWN  Resistive Pull Up/Down 
*  GPIO_5_6_DM_DIG_HIZ    High Impedance Digital 
*  GPIO_5_6_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void GPIO_5_6_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(GPIO_5_6_0, mode);
}
Example #23
0
/*******************************************************************************
* Function Name: pin_DAC2_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  pin_DAC2_DM_STRONG     Strong Drive 
*  pin_DAC2_DM_OD_HI      Open Drain, Drives High 
*  pin_DAC2_DM_OD_LO      Open Drain, Drives Low 
*  pin_DAC2_DM_RES_UP     Resistive Pull Up 
*  pin_DAC2_DM_RES_DWN    Resistive Pull Down 
*  pin_DAC2_DM_RES_UPDWN  Resistive Pull Up/Down 
*  pin_DAC2_DM_DIG_HIZ    High Impedance Digital 
*  pin_DAC2_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void pin_DAC2_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(pin_DAC2_0, mode);
}
/*******************************************************************************
* Function Name: mot_left_forward_SetDriveMode
********************************************************************************
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  void
*
*******************************************************************************/
void mot_left_forward_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(mot_left_forward_0, mode);
}
Example #25
0
/*******************************************************************************
* Function Name: SCL_1_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  SCL_1_DM_STRONG     Strong Drive 
*  SCL_1_DM_OD_HI      Open Drain, Drives High 
*  SCL_1_DM_OD_LO      Open Drain, Drives Low 
*  SCL_1_DM_RES_UP     Resistive Pull Up 
*  SCL_1_DM_RES_DWN    Resistive Pull Down 
*  SCL_1_DM_RES_UPDWN  Resistive Pull Up/Down 
*  SCL_1_DM_DIG_HIZ    High Impedance Digital 
*  SCL_1_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void SCL_1_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(SCL_1_0, mode);
}
/*******************************************************************************
* Function Name: LED4_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  LED4_DM_STRONG     Strong Drive 
*  LED4_DM_OD_HI      Open Drain, Drives High 
*  LED4_DM_OD_LO      Open Drain, Drives Low 
*  LED4_DM_RES_UP     Resistive Pull Up 
*  LED4_DM_RES_DWN    Resistive Pull Down 
*  LED4_DM_RES_UPDWN  Resistive Pull Up/Down 
*  LED4_DM_DIG_HIZ    High Impedance Digital 
*  LED4_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void LED4_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(LED4_0, mode);
}
Example #27
0
/*******************************************************************************
* Function Name: R2_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void R2_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(R2_0, mode);
}
Example #28
0
/*******************************************************************************
* Function Name: LDV2_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void LDV2_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(LDV2_0, mode);
}
/*******************************************************************************
* Function Name: USBUART_1_Dp_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  USBUART_1_Dp_DM_STRONG     Strong Drive 
*  USBUART_1_Dp_DM_OD_HI      Open Drain, Drives High 
*  USBUART_1_Dp_DM_OD_LO      Open Drain, Drives Low 
*  USBUART_1_Dp_DM_RES_UP     Resistive Pull Up 
*  USBUART_1_Dp_DM_RES_DWN    Resistive Pull Down 
*  USBUART_1_Dp_DM_RES_UPDWN  Resistive Pull Up/Down 
*  USBUART_1_Dp_DM_DIG_HIZ    High Impedance Digital 
*  USBUART_1_Dp_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void USBUART_1_Dp_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(USBUART_1_Dp_0, mode);
}
/*******************************************************************************
* Function Name: GPIO_12_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.
*
*  GPIO_12_4_DM_STRONG     Strong Drive 
*  GPIO_12_4_DM_OD_HI      Open Drain, Drives High 
*  GPIO_12_4_DM_OD_LO      Open Drain, Drives Low 
*  GPIO_12_4_DM_RES_UP     Resistive Pull Up 
*  GPIO_12_4_DM_RES_DWN    Resistive Pull Down 
*  GPIO_12_4_DM_RES_UPDWN  Resistive Pull Up/Down 
*  GPIO_12_4_DM_DIG_HIZ    High Impedance Digital 
*  GPIO_12_4_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void GPIO_12_4_SetDriveMode(uint8 mode) 
{
	CyPins_SetPinDriveMode(GPIO_12_4_0, mode);
}