PSC2 Output Configuration
[PSC2 Macros]

Collaboration diagram for PSC2 Output Configuration:


Detailed Description

Select the PSC2 Outputs.


Defines

#define Disable_both_psc2_outputs()   (PSOC2 &= ~((1<<POEN2A) | (1<<POEN2B)))
 Disable Both PSC2 Waveform Generator A and B.
#define Disable_pscout20()   (PSOC2 &= ~(1<<POEN2A) )
 Disable PSC2 Waveform Generator A.
#define Disable_pscout21()   (PSOC2 &= ~(1<<POEN2B) )
 Disable PSC2 Waveform Generator B.
#define Enable_both_psc2_outputs()   (PSOC2 |= ((1<<POEN2A) | (1<<POEN2B)))
 Enable Both PSC2 Waveform Generator A and B.
#define Enable_pscout20()   (PSOC2 |= (1<<POEN2A) )
 Enable PSC2 Waveform Generator A.
#define Enable_pscout21()   (PSOC2 |= (1<<POEN2B) )
 Enable PSC2 Waveform Generator B.
#define Psc2_outputs_active_high()   (PCNF2 |= (1<<POP2) )
 PSC2 outputs are active low.
#define Psc2_outputs_active_low()   (PCNF2 &= ~(1<<POP2) )
 PSC2 outputs are active high.


Define Documentation

 
#define Disable_both_psc2_outputs (  )     (PSOC2 &= ~((1<<POEN2A) | (1<<POEN2B)))

Disable Both PSC2 Waveform Generator A and B.

Definition at line 459 of file psc_drv.h.

 
#define Disable_pscout20 (  )     (PSOC2 &= ~(1<<POEN2A) )

Disable PSC2 Waveform Generator A.

Definition at line 451 of file psc_drv.h.

 
#define Disable_pscout21 (  )     (PSOC2 &= ~(1<<POEN2B) )

Disable PSC2 Waveform Generator B.

Definition at line 454 of file psc_drv.h.

 
#define Enable_both_psc2_outputs (  )     (PSOC2 |= ((1<<POEN2A) | (1<<POEN2B)))

Enable Both PSC2 Waveform Generator A and B.

Definition at line 456 of file psc_drv.h.

 
#define Enable_pscout20 (  )     (PSOC2 |= (1<<POEN2A) )

Enable PSC2 Waveform Generator A.

Definition at line 450 of file psc_drv.h.

 
#define Enable_pscout21 (  )     (PSOC2 |= (1<<POEN2B) )

Enable PSC2 Waveform Generator B.

Definition at line 453 of file psc_drv.h.

 
#define Psc2_outputs_active_high (  )     (PCNF2 |= (1<<POP2) )

PSC2 outputs are active low.

Definition at line 462 of file psc_drv.h.

 
#define Psc2_outputs_active_low (  )     (PCNF2 &= ~(1<<POP2) )

PSC2 outputs are active high.

Definition at line 463 of file psc_drv.h.


Generated on Wed Jul 12 16:55:33 2006 for Atmel BLDC Sensorless on ATAVRMC100 by  doxygen 1.4.7