コード例 #1
0
ファイル: Keypad_Read.c プロジェクト: f16falcona46/PSoC
/*******************************************************************************
* Function Name: Keypad_Read_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  Keypad_Read_DM_STRONG     Strong Drive 
*  Keypad_Read_DM_OD_HI      Open Drain, Drives High 
*  Keypad_Read_DM_OD_LO      Open Drain, Drives Low 
*  Keypad_Read_DM_RES_UP     Resistive Pull Up 
*  Keypad_Read_DM_RES_DWN    Resistive Pull Down 
*  Keypad_Read_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Keypad_Read_DM_DIG_HIZ    High Impedance Digital 
*  Keypad_Read_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Keypad_Read_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Keypad_Read__0__SHIFT, mode);
	SetP4PinDriveMode(Keypad_Read__1__SHIFT, mode);
	SetP4PinDriveMode(Keypad_Read__2__SHIFT, mode);
	SetP4PinDriveMode(Keypad_Read__3__SHIFT, mode);
}
コード例 #2
0
ファイル: Pin_1.c プロジェクト: raulmo1337/Lightening
/*******************************************************************************
* Function Name: Pin_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.
*
*  Pin_1_DM_STRONG     Strong Drive 
*  Pin_1_DM_OD_HI      Open Drain, Drives High 
*  Pin_1_DM_OD_LO      Open Drain, Drives Low 
*  Pin_1_DM_RES_UP     Resistive Pull Up 
*  Pin_1_DM_RES_DWN    Resistive Pull Down 
*  Pin_1_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Pin_1_DM_DIG_HIZ    High Impedance Digital 
*  Pin_1_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Pin_1_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Pin_1__0__SHIFT, mode);
	SetP4PinDriveMode(Pin_1__1__SHIFT, mode);
	SetP4PinDriveMode(Pin_1__2__SHIFT, mode);
	SetP4PinDriveMode(Pin_1__3__SHIFT, mode);
}
コード例 #3
0
ファイル: AD_H.c プロジェクト: VWarlock/uknc_sd_fdd
/*******************************************************************************
* Function Name: AD_H_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  AD_H_DM_STRONG     Strong Drive 
*  AD_H_DM_OD_HI      Open Drain, Drives High 
*  AD_H_DM_OD_LO      Open Drain, Drives Low 
*  AD_H_DM_RES_UP     Resistive Pull Up 
*  AD_H_DM_RES_DWN    Resistive Pull Down 
*  AD_H_DM_RES_UPDWN  Resistive Pull Up/Down 
*  AD_H_DM_DIG_HIZ    High Impedance Digital 
*  AD_H_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void AD_H_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(AD_H__0__SHIFT, mode);
	SetP4PinDriveMode(AD_H__1__SHIFT, mode);
	SetP4PinDriveMode(AD_H__2__SHIFT, mode);
	SetP4PinDriveMode(AD_H__3__SHIFT, mode);
	SetP4PinDriveMode(AD_H__4__SHIFT, mode);
	SetP4PinDriveMode(AD_H__5__SHIFT, mode);
	SetP4PinDriveMode(AD_H__6__SHIFT, mode);
	SetP4PinDriveMode(AD_H__7__SHIFT, mode);
}
コード例 #4
0
ファイル: P2_0_ADC0.c プロジェクト: LagunaMatada/GlowTime
/*******************************************************************************
* Function Name: P2_0_ADC0_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void P2_0_ADC0_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(P2_0_ADC0__0__SHIFT, mode);
}
コード例 #5
0
/*******************************************************************************
* Function Name: OpenPressure_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  OpenPressure_DM_STRONG     Strong Drive 
*  OpenPressure_DM_OD_HI      Open Drain, Drives High 
*  OpenPressure_DM_OD_LO      Open Drain, Drives Low 
*  OpenPressure_DM_RES_UP     Resistive Pull Up 
*  OpenPressure_DM_RES_DWN    Resistive Pull Down 
*  OpenPressure_DM_RES_UPDWN  Resistive Pull Up/Down 
*  OpenPressure_DM_DIG_HIZ    High Impedance Digital 
*  OpenPressure_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void OpenPressure_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(OpenPressure__0__SHIFT, mode);
}
コード例 #6
0
ファイル: M_in_3.c プロジェクト: BYU-MarsRover/Backup
/*******************************************************************************
* Function Name: M_in_3_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_in_3_DM_STRONG     Strong Drive 
*  M_in_3_DM_OD_HI      Open Drain, Drives High 
*  M_in_3_DM_OD_LO      Open Drain, Drives Low 
*  M_in_3_DM_RES_UP     Resistive Pull Up 
*  M_in_3_DM_RES_DWN    Resistive Pull Down 
*  M_in_3_DM_RES_UPDWN  Resistive Pull Up/Down 
*  M_in_3_DM_DIG_HIZ    High Impedance Digital 
*  M_in_3_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void M_in_3_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(M_in_3__0__SHIFT, mode);
}
コード例 #7
0
/*******************************************************************************
* Function Name: ModbusComms_tx_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void ModbusComms_tx_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(ModbusComms_tx__0__SHIFT, mode);
}
コード例 #8
0
ファイル: B_LED.c プロジェクト: pkzju/freemodbusOnPsoc4
/*******************************************************************************
* Function Name: B_LED_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  B_LED_DM_STRONG     Strong Drive 
*  B_LED_DM_OD_HI      Open Drain, Drives High 
*  B_LED_DM_OD_LO      Open Drain, Drives Low 
*  B_LED_DM_RES_UP     Resistive Pull Up 
*  B_LED_DM_RES_DWN    Resistive Pull Down 
*  B_LED_DM_RES_UPDWN  Resistive Pull Up/Down 
*  B_LED_DM_DIG_HIZ    High Impedance Digital 
*  B_LED_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void B_LED_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(B_LED__0__SHIFT, mode);
}
コード例 #9
0
ファイル: EEPROM_CS.c プロジェクト: fredgreer/geocase
/*******************************************************************************
* Function Name: EEPROM_CS_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  EEPROM_CS_DM_STRONG     Strong Drive 
*  EEPROM_CS_DM_OD_HI      Open Drain, Drives High 
*  EEPROM_CS_DM_OD_LO      Open Drain, Drives Low 
*  EEPROM_CS_DM_RES_UP     Resistive Pull Up 
*  EEPROM_CS_DM_RES_DWN    Resistive Pull Down 
*  EEPROM_CS_DM_RES_UPDWN  Resistive Pull Up/Down 
*  EEPROM_CS_DM_DIG_HIZ    High Impedance Digital 
*  EEPROM_CS_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void EEPROM_CS_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(EEPROM_CS__0__SHIFT, mode);
}
コード例 #10
0
/*******************************************************************************
* Function Name: SCLK_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  SCLK_DM_STRONG     Strong Drive 
*  SCLK_DM_OD_HI      Open Drain, Drives High 
*  SCLK_DM_OD_LO      Open Drain, Drives Low 
*  SCLK_DM_RES_UP     Resistive Pull Up 
*  SCLK_DM_RES_DWN    Resistive Pull Down 
*  SCLK_DM_RES_UPDWN  Resistive Pull Up/Down 
*  SCLK_DM_DIG_HIZ    High Impedance Digital 
*  SCLK_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void SCLK_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(SCLK__0__SHIFT, mode);
}
コード例 #11
0
/*******************************************************************************
* Function Name: usbUART115200bps_rx_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void usbUART115200bps_rx_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(usbUART115200bps_rx__0__SHIFT, mode);
}
コード例 #12
0
ファイル: stromstyring_plus.c プロジェクト: PottePlante/PSoC
/*******************************************************************************
* Function Name: stromstyring_plus_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  stromstyring_plus_DM_STRONG     Strong Drive 
*  stromstyring_plus_DM_OD_HI      Open Drain, Drives High 
*  stromstyring_plus_DM_OD_LO      Open Drain, Drives Low 
*  stromstyring_plus_DM_RES_UP     Resistive Pull Up 
*  stromstyring_plus_DM_RES_DWN    Resistive Pull Down 
*  stromstyring_plus_DM_RES_UPDWN  Resistive Pull Up/Down 
*  stromstyring_plus_DM_DIG_HIZ    High Impedance Digital 
*  stromstyring_plus_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void stromstyring_plus_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(stromstyring_plus__0__SHIFT, mode);
}
コード例 #13
0
ファイル: SPI_SD_ss0_m.c プロジェクト: YLGH/BGSProject
/*******************************************************************************
* Function Name: SPI_SD_ss0_m_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  SPI_SD_ss0_m_DM_STRONG     Strong Drive 
*  SPI_SD_ss0_m_DM_OD_HI      Open Drain, Drives High 
*  SPI_SD_ss0_m_DM_OD_LO      Open Drain, Drives Low 
*  SPI_SD_ss0_m_DM_RES_UP     Resistive Pull Up 
*  SPI_SD_ss0_m_DM_RES_DWN    Resistive Pull Down 
*  SPI_SD_ss0_m_DM_RES_UPDWN  Resistive Pull Up/Down 
*  SPI_SD_ss0_m_DM_DIG_HIZ    High Impedance Digital 
*  SPI_SD_ss0_m_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void SPI_SD_ss0_m_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(SPI_SD_ss0_m__0__SHIFT, mode);
}
コード例 #14
0
/*******************************************************************************
* Function Name: PCComms_rx_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  PCComms_rx_DM_STRONG     Strong Drive 
*  PCComms_rx_DM_OD_HI      Open Drain, Drives High 
*  PCComms_rx_DM_OD_LO      Open Drain, Drives Low 
*  PCComms_rx_DM_RES_UP     Resistive Pull Up 
*  PCComms_rx_DM_RES_DWN    Resistive Pull Down 
*  PCComms_rx_DM_RES_UPDWN  Resistive Pull Up/Down 
*  PCComms_rx_DM_DIG_HIZ    High Impedance Digital 
*  PCComms_rx_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void PCComms_rx_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(PCComms_rx__0__SHIFT, mode);
}
コード例 #15
0
/*******************************************************************************
* Function Name: TS_I2C_sda_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  TS_I2C_sda_DM_STRONG     Strong Drive 
*  TS_I2C_sda_DM_OD_HI      Open Drain, Drives High 
*  TS_I2C_sda_DM_OD_LO      Open Drain, Drives Low 
*  TS_I2C_sda_DM_RES_UP     Resistive Pull Up 
*  TS_I2C_sda_DM_RES_DWN    Resistive Pull Down 
*  TS_I2C_sda_DM_RES_UPDWN  Resistive Pull Up/Down 
*  TS_I2C_sda_DM_DIG_HIZ    High Impedance Digital 
*  TS_I2C_sda_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void TS_I2C_sda_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(TS_I2C_sda__0__SHIFT, mode);
}
コード例 #16
0
/*******************************************************************************
* Function Name: phiA_Out_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  phiA_Out_DM_STRONG     Strong Drive 
*  phiA_Out_DM_OD_HI      Open Drain, Drives High 
*  phiA_Out_DM_OD_LO      Open Drain, Drives Low 
*  phiA_Out_DM_RES_UP     Resistive Pull Up 
*  phiA_Out_DM_RES_DWN    Resistive Pull Down 
*  phiA_Out_DM_RES_UPDWN  Resistive Pull Up/Down 
*  phiA_Out_DM_DIG_HIZ    High Impedance Digital 
*  phiA_Out_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void phiA_Out_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(phiA_Out__0__SHIFT, mode);
}
コード例 #17
0
ファイル: opamp_pos_sense.c プロジェクト: Gatulibu/reload-pro
/*******************************************************************************
* Function Name: opamp_pos_sense_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  opamp_pos_sense_DM_STRONG     Strong Drive 
*  opamp_pos_sense_DM_OD_HI      Open Drain, Drives High 
*  opamp_pos_sense_DM_OD_LO      Open Drain, Drives Low 
*  opamp_pos_sense_DM_RES_UP     Resistive Pull Up 
*  opamp_pos_sense_DM_RES_DWN    Resistive Pull Down 
*  opamp_pos_sense_DM_RES_UPDWN  Resistive Pull Up/Down 
*  opamp_pos_sense_DM_DIG_HIZ    High Impedance Digital 
*  opamp_pos_sense_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void opamp_pos_sense_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(opamp_pos_sense__0__SHIFT, mode);
}
コード例 #18
0
/*******************************************************************************
* Function Name: WIZ_INT_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  WIZ_INT_DM_STRONG     Strong Drive 
*  WIZ_INT_DM_OD_HI      Open Drain, Drives High 
*  WIZ_INT_DM_OD_LO      Open Drain, Drives Low 
*  WIZ_INT_DM_RES_UP     Resistive Pull Up 
*  WIZ_INT_DM_RES_DWN    Resistive Pull Down 
*  WIZ_INT_DM_RES_UPDWN  Resistive Pull Up/Down 
*  WIZ_INT_DM_DIG_HIZ    High Impedance Digital 
*  WIZ_INT_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void WIZ_INT_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(WIZ_INT__0__SHIFT, mode);
}
コード例 #19
0
/*******************************************************************************
* Function Name: P0_2_LED_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  P0_2_LED_DM_STRONG     Strong Drive 
*  P0_2_LED_DM_OD_HI      Open Drain, Drives High 
*  P0_2_LED_DM_OD_LO      Open Drain, Drives Low 
*  P0_2_LED_DM_RES_UP     Resistive Pull Up 
*  P0_2_LED_DM_RES_DWN    Resistive Pull Down 
*  P0_2_LED_DM_RES_UPDWN  Resistive Pull Up/Down 
*  P0_2_LED_DM_DIG_HIZ    High Impedance Digital 
*  P0_2_LED_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void P0_2_LED_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(P0_2_LED__0__SHIFT, mode);
}
コード例 #20
0
ファイル: Batt_curr.c プロジェクト: fredgreer/geocase
/*******************************************************************************
* Function Name: Batt_curr_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  Batt_curr_DM_STRONG     Strong Drive 
*  Batt_curr_DM_OD_HI      Open Drain, Drives High 
*  Batt_curr_DM_OD_LO      Open Drain, Drives Low 
*  Batt_curr_DM_RES_UP     Resistive Pull Up 
*  Batt_curr_DM_RES_DWN    Resistive Pull Down 
*  Batt_curr_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Batt_curr_DM_DIG_HIZ    High Impedance Digital 
*  Batt_curr_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Batt_curr_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Batt_curr__0__SHIFT, mode);
}
コード例 #21
0
ファイル: Strip_0.c プロジェクト: clementleger/lacktable
/*******************************************************************************
* Function Name: Strip_0_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  Strip_0_DM_STRONG     Strong Drive 
*  Strip_0_DM_OD_HI      Open Drain, Drives High 
*  Strip_0_DM_OD_LO      Open Drain, Drives Low 
*  Strip_0_DM_RES_UP     Resistive Pull Up 
*  Strip_0_DM_RES_DWN    Resistive Pull Down 
*  Strip_0_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Strip_0_DM_DIG_HIZ    High Impedance Digital 
*  Strip_0_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Strip_0_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Strip_0__0__SHIFT, mode);
}
コード例 #22
0
ファイル: RST.c プロジェクト: f16falcona46/PSoC
/*******************************************************************************
* Function Name: RST_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  RST_DM_STRONG     Strong Drive 
*  RST_DM_OD_HI      Open Drain, Drives High 
*  RST_DM_OD_LO      Open Drain, Drives Low 
*  RST_DM_RES_UP     Resistive Pull Up 
*  RST_DM_RES_DWN    Resistive Pull Down 
*  RST_DM_RES_UPDWN  Resistive Pull Up/Down 
*  RST_DM_DIG_HIZ    High Impedance Digital 
*  RST_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void RST_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(RST__0__SHIFT, mode);
}
コード例 #23
0
/*******************************************************************************
* Function Name: AIN2_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
*
* Parameters:
*  mode:  Change the pins to one of the following drive modes.
*
*  AIN2_DM_STRONG     Strong Drive
*  AIN2_DM_OD_HI      Open Drain, Drives High
*  AIN2_DM_OD_LO      Open Drain, Drives Low
*  AIN2_DM_RES_UP     Resistive Pull Up
*  AIN2_DM_RES_DWN    Resistive Pull Down
*  AIN2_DM_RES_UPDWN  Resistive Pull Up/Down
*  AIN2_DM_DIG_HIZ    High Impedance Digital
*  AIN2_DM_ALG_HIZ    High Impedance Analog
*
* Return:
*  None
*
*******************************************************************************/
void AIN2_SetDriveMode(uint8 mode)
{
    SetP4PinDriveMode(AIN2__0__SHIFT, mode);
}
コード例 #24
0
ファイル: ENK_MOTOR2A.c プロジェクト: mcisek/balancing_robot
/*******************************************************************************
* Function Name: ENK_MOTOR2A_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  ENK_MOTOR2A_DM_STRONG     Strong Drive 
*  ENK_MOTOR2A_DM_OD_HI      Open Drain, Drives High 
*  ENK_MOTOR2A_DM_OD_LO      Open Drain, Drives Low 
*  ENK_MOTOR2A_DM_RES_UP     Resistive Pull Up 
*  ENK_MOTOR2A_DM_RES_DWN    Resistive Pull Down 
*  ENK_MOTOR2A_DM_RES_UPDWN  Resistive Pull Up/Down 
*  ENK_MOTOR2A_DM_DIG_HIZ    High Impedance Digital 
*  ENK_MOTOR2A_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void ENK_MOTOR2A_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(ENK_MOTOR2A__0__SHIFT, mode);
}
コード例 #25
0
/*******************************************************************************
* Function Name: Pin_UltrasonicEcho_5_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_UltrasonicEcho_5_DM_STRONG     Strong Drive 
*  Pin_UltrasonicEcho_5_DM_OD_HI      Open Drain, Drives High 
*  Pin_UltrasonicEcho_5_DM_OD_LO      Open Drain, Drives Low 
*  Pin_UltrasonicEcho_5_DM_RES_UP     Resistive Pull Up 
*  Pin_UltrasonicEcho_5_DM_RES_DWN    Resistive Pull Down 
*  Pin_UltrasonicEcho_5_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Pin_UltrasonicEcho_5_DM_DIG_HIZ    High Impedance Digital 
*  Pin_UltrasonicEcho_5_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Pin_UltrasonicEcho_5_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Pin_UltrasonicEcho_5__0__SHIFT, mode);
}
コード例 #26
0
/*******************************************************************************
* Function Name: lineDriver_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to this drive mode.
*
* Return: 
*  None
*
*******************************************************************************/
void lineDriver_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(lineDriver__0__SHIFT, mode);
}
コード例 #27
0
/*******************************************************************************
* Function Name: Pressure1_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  Pressure1_DM_STRONG     Strong Drive 
*  Pressure1_DM_OD_HI      Open Drain, Drives High 
*  Pressure1_DM_OD_LO      Open Drain, Drives Low 
*  Pressure1_DM_RES_UP     Resistive Pull Up 
*  Pressure1_DM_RES_DWN    Resistive Pull Down 
*  Pressure1_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Pressure1_DM_DIG_HIZ    High Impedance Digital 
*  Pressure1_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Pressure1_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Pressure1__0__SHIFT, mode);
}
コード例 #28
0
/*******************************************************************************
* Function Name: Pin_InfraredDistance_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.
*
*  Pin_InfraredDistance_6_DM_STRONG     Strong Drive 
*  Pin_InfraredDistance_6_DM_OD_HI      Open Drain, Drives High 
*  Pin_InfraredDistance_6_DM_OD_LO      Open Drain, Drives Low 
*  Pin_InfraredDistance_6_DM_RES_UP     Resistive Pull Up 
*  Pin_InfraredDistance_6_DM_RES_DWN    Resistive Pull Down 
*  Pin_InfraredDistance_6_DM_RES_UPDWN  Resistive Pull Up/Down 
*  Pin_InfraredDistance_6_DM_DIG_HIZ    High Impedance Digital 
*  Pin_InfraredDistance_6_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void Pin_InfraredDistance_6_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(Pin_InfraredDistance_6__0__SHIFT, mode);
}
コード例 #29
0
/*******************************************************************************
* Function Name: TH_T_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  TH_T_DM_STRONG     Strong Drive 
*  TH_T_DM_OD_HI      Open Drain, Drives High 
*  TH_T_DM_OD_LO      Open Drain, Drives Low 
*  TH_T_DM_RES_UP     Resistive Pull Up 
*  TH_T_DM_RES_DWN    Resistive Pull Down 
*  TH_T_DM_RES_UPDWN  Resistive Pull Up/Down 
*  TH_T_DM_DIG_HIZ    High Impedance Digital 
*  TH_T_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void TH_T_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(TH_T__0__SHIFT, mode);
}
コード例 #30
0
ファイル: SPI_1_sclk_s.c プロジェクト: mickkn/E3PRJ3
/*******************************************************************************
* Function Name: SPI_1_sclk_s_SetDriveMode
********************************************************************************
*
* Summary:
*  Change the drive mode on the pins of the port.
* 
* Parameters:  
*  mode:  Change the pins to one of the following drive modes.
*
*  SPI_1_sclk_s_DM_STRONG     Strong Drive 
*  SPI_1_sclk_s_DM_OD_HI      Open Drain, Drives High 
*  SPI_1_sclk_s_DM_OD_LO      Open Drain, Drives Low 
*  SPI_1_sclk_s_DM_RES_UP     Resistive Pull Up 
*  SPI_1_sclk_s_DM_RES_DWN    Resistive Pull Down 
*  SPI_1_sclk_s_DM_RES_UPDWN  Resistive Pull Up/Down 
*  SPI_1_sclk_s_DM_DIG_HIZ    High Impedance Digital 
*  SPI_1_sclk_s_DM_ALG_HIZ    High Impedance Analog 
*
* Return: 
*  None
*
*******************************************************************************/
void SPI_1_sclk_s_SetDriveMode(uint8 mode) 
{
	SetP4PinDriveMode(SPI_1_sclk_s__0__SHIFT, mode);
}