FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
Data Fields
inputOutputSetting Struct Reference

Input output pin usage configuration. More...

#include <FixedConfigs.h>

Data Fields

unsigned char PWMEnable
 Enables the PWM functionality for each pin. Note for 16 bit you the low order bit enabled. See section 8.3.2.1 on page 368 of MC9S12XDP512RMV2.pdf.
unsigned char PWMPolarity
 Inverts the duty of the output. 1 means "duty is high portion", 0 means "duty is low portion". See section 8.3.2.2 on page 370 of MC9S12XDP512RMV2.pdf.
unsigned char PWMClock
 TODO abstract this away.
unsigned char PWMClockPrescaler
 TODO abstract this away.
unsigned char PWMCenterAlign
 See section 8.3.2.5 on page 372 of MC9S12XDP512RMV2.pdf.
unsigned char PWMControl
 The high four bits concatenate the 8 bit PWM channels into 4 16 bit channels on a pair by pair basis. 4 joins (0,1), 5 joins (2,3), 6 joins (4,5), 7 joins (6,7).
unsigned char PWMScalerA
 TODO abstract this away.
unsigned char PWMScalerB
 TODO abstract this away.
unsigned char PWMPeriod0
 TODO abstract this away.
unsigned char PWMPeriod1
 TODO abstract this away.
unsigned char PWMPeriod2
 TODO abstract this away.
unsigned char PWMPeriod3
 TODO abstract this away.
unsigned char PWMPeriod4
 TODO abstract this away.
unsigned char PWMPeriod5
 TODO abstract this away.
unsigned char PWMPeriod6
 TODO abstract this away.
unsigned char PWMPeriod7
 TODO abstract this away.
unsigned char PWMInitialDuty0
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty1
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty2
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty3
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty4
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty5
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty6
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PWMInitialDuty7
 The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.
unsigned char PortInitialValueA
 The state of the port at power up.
unsigned char PortInitialValueB
 The state of the port at power up.
unsigned char PortInitialValueC
 The state of the port at power up.
unsigned char PortInitialValueD
 The state of the port at power up.
unsigned char PortInitialValueE
 The state of the port at power up.
unsigned char PortInitialValueH
 The state of the port at power up.
unsigned char PortInitialValueJ
 The state of the port at power up.
unsigned char PortInitialValueK
 The state of the port at power up.
unsigned char PortInitialValueM
 The state of the port at power up.
unsigned char PortInitialValueP
 The state of the port at power up.
unsigned char PortInitialValueS
 The state of the port at power up.
unsigned char PortInitialValueT
 The state of the port at power up.
unsigned char PortDirectionA
unsigned char PortDirectionB
 Whether pins act as inputs or outputs, 1 means output, 0 means input. 0 is the default for most pins. Note, peripheral modules which use these pins override this control.
unsigned char PortDirectionC
unsigned char PortDirectionD
unsigned char PortDirectionE
unsigned char PortDirectionH
unsigned char PortDirectionJ
unsigned char PortDirectionK
unsigned char PortDirectionM
unsigned char PortDirectionP
unsigned char PortDirectionS
unsigned char PortDirectionT

Detailed Description

Input output pin usage configuration.

Todo:
TODO document this better

Definition at line 254 of file FixedConfigs.h.

Field Documentation

unsigned char inputOutputSetting::PWMEnable

Enables the PWM functionality for each pin. Note for 16 bit you the low order bit enabled. See section 8.3.2.1 on page 368 of MC9S12XDP512RMV2.pdf.

Definition at line 257 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPolarity

Inverts the duty of the output. 1 means "duty is high portion", 0 means "duty is low portion". See section 8.3.2.2 on page 370 of MC9S12XDP512RMV2.pdf.

Definition at line 258 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMClock

TODO abstract this away.

Definition at line 259 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMClockPrescaler

TODO abstract this away.

Definition at line 260 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMCenterAlign

See section 8.3.2.5 on page 372 of MC9S12XDP512RMV2.pdf.

Definition at line 261 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMControl

The high four bits concatenate the 8 bit PWM channels into 4 16 bit channels on a pair by pair basis. 4 joins (0,1), 5 joins (2,3), 6 joins (4,5), 7 joins (6,7).

Definition at line 262 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMScalerA

TODO abstract this away.

Definition at line 263 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMScalerB

TODO abstract this away.

Definition at line 264 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod0

TODO abstract this away.

Definition at line 266 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod1

TODO abstract this away.

Definition at line 267 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod2

TODO abstract this away.

Definition at line 268 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod3

TODO abstract this away.

Definition at line 269 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod4

TODO abstract this away.

Definition at line 270 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod5

TODO abstract this away.

Definition at line 271 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod6

TODO abstract this away.

Definition at line 272 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMPeriod7

TODO abstract this away.

Definition at line 273 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty0

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 275 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty1

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 276 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty2

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 277 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty3

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 278 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty4

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 279 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty5

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 280 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty6

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 281 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PWMInitialDuty7

The duty cycle at power up. Usually unimportant due to being overwritten by the algorithm involved milliseconds later.

Definition at line 282 of file FixedConfigs.h.

Referenced by initPWM().

unsigned char inputOutputSetting::PortInitialValueA

The state of the port at power up.

See Also
PortDirectionA

Definition at line 284 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueB

The state of the port at power up.

See Also
PortDirectionB

Definition at line 285 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueC

The state of the port at power up.

See Also
PortDirectionC

Definition at line 286 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueD

The state of the port at power up.

See Also
PortDirectionD

Definition at line 287 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueE

The state of the port at power up.

See Also
PortDirectionE

Definition at line 288 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueH

The state of the port at power up.

See Also
PortDirectionH

Definition at line 289 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueJ

The state of the port at power up.

See Also
PortDirectionJ

Definition at line 290 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueK

The state of the port at power up.

See Also
PortDirectionK

Definition at line 291 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueM

The state of the port at power up.

See Also
PortDirectionM

Definition at line 292 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueP

The state of the port at power up.

See Also
PortDirectionP

Definition at line 293 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueS

The state of the port at power up.

See Also
PortDirectionS

Definition at line 294 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortInitialValueT

The state of the port at power up.

See Also
PortDirectionT Currently this setting is ignored. TODO Make it take effect on unused port T pins.

Definition at line 295 of file FixedConfigs.h.

unsigned char inputOutputSetting::PortDirectionA
See Also
PortDirectionB Pin 6 is the Firmware Load switch input AND the Check Engine Light output. Pin 7 is the standard fuel pump relay drive pin. These bits are therefore overridden and have no effect.

Definition at line 297 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionB

Whether pins act as inputs or outputs, 1 means output, 0 means input. 0 is the default for most pins. Note, peripheral modules which use these pins override this control.

Definition at line 298 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionC
See Also
PortDirectionB

Definition at line 299 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionD
See Also
PortDirectionB

Definition at line 300 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionE
See Also
PortDirectionB This port is associated with various control bits. Extreme care should be taken when using them, regardless of what for. Pins 0 and 1 are always inputs regardless of this setting.

Definition at line 301 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionH
See Also
PortDirectionB This port is associated with the SPI1 (0-3), SPI2 (4-7), SCI4 (4,5), and SCI5 (6,7) modules.

Definition at line 302 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionJ
See Also
PortDirectionB This port is associated with the SCI2 (0,1), I2C0 (6,7), I2C1 (4,5), and CAN4 (6,7) modules.

Definition at line 303 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionK
See Also
PortDirectionB

Definition at line 304 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionM
See Also
PortDirectionB This port is associated with the CAN0 (0,1), CAN1 (2,3), CAN2 (4,5), CAN3 (6,7), and SCI3 (6,7) modules.

Definition at line 305 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionP
See Also
PortDirectionB This port is associated with the PWM (0-7) module.

Definition at line 306 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionS
See Also
PortDirectionB This port is associated with the SCI0 (0,1), SCI1 (2,3), and SPI0 (4-7) modules. Primary communication is over SCI0, therefore the control bits for those pins are overridden to ensure correct operation, and have no effect.

Definition at line 307 of file FixedConfigs.h.

Referenced by initGPIO().

unsigned char inputOutputSetting::PortDirectionT
See Also
PortDirectionB This port is associated with the ECT (0-7) module. Currently this setting is ignored. TODO Make it take effect on unused port T pins.

Definition at line 308 of file FixedConfigs.h.


The documentation for this struct was generated from the following file: