Module boardmap.pilotmega - Occam header for ArduPilotMega specific pin mappings

Occam header for ArduPilotMega specific pin mappings.

Index

Declarations

boardmap.module:81Constant PD4

VAL INT PD4

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:83Constant PE6

VAL INT PE6

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:85Constant PH2

VAL INT PH2

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:88Constant OUT0

VAL INT OUT0

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:90Constant OUT1

VAL INT OUT1

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:92Constant OUT2

VAL INT OUT2

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:94Constant OUT3

VAL INT OUT3

Symbolic constant for accessing ArduPilotMega specific, unnumbered pin.

boardmap.module:97Constant A0

VAL INT A0

Symbolic constant for accessing the first analog pin.

boardmap.module:116Constant A15

VAL INT A15

Symbolic constant for accessing the last analog pin.

Constants A1:14 do exist, they are simply not documented here for the sake of saving space.

boardmap.module:119Constant RX0

VAL INT RX0

Symbolic constant for accessing the first read port.

boardmap.module:121Constant TX0

VAL INT TX0

Symbolic constant for accessing the first transmit port.

boardmap.module:130Constant RX3

VAL INT RX3

Symbolic constant for accessing the last read port.

Constants RX1:2 do exist, they are simply not documented here for the sake of saving space.

boardmap.module:135Constant TX3

VAL INT TX3

Symbolic constant for accessing the last transmit port.

Constants TX1:2 do exist, they are simply not documented here for the sake of saving space.

boardmap.module:138Constant SDA

VAL INT SDA

Symbolic constant for accessing the Serial DAta register.

boardmap.module:140Constant SCL

VAL INT SCL

Symbolic constant for accessing the Serial CLock register.

boardmap.module:144Constant MISO

VAL INT MISO

Symbolic constant for accessing the Master data Input, Slave Output register (for use with SPI communication).

boardmap.module:147Constant MOSI

VAL INT MOSI

Symbolic constant for accessing the Master data Output, Slave Input register (for use with SPI communication).

boardmap.module:150Constant SCK

VAL INT SCK

Symbolic constant for accessing the bus Serial ClocK register (for use with SPI communication).

boardmap.module:153Constant SS

VAL INT SS

Symbolic constant for accessing the Slave Select input register (for use with SPI communication).

boardmap.module:156Constant LED.PIN

VAL INT LED.PIN

Symbolic constant to signify a lack of on-board LED pin.

boardmap.module:179Function board.to.chip

INT INLINE FUNCTION board.to.chip (VAL INT board.pin)

ArduPilotMega specific conversion function for finding chip-specific pins from board-specific pin.

Parameters:

VAL INT board.pin The board pin to be mapped to an AVR pin.

Returns:

INT The AVR pin connected to the given board pin.

boardmap.module:192Function board.analog.to.chip

INT INLINE FUNCTION board.analog.to.chip (VAL INT board.analog.pin)

ArduPilotMega specific conversion function for finding chip-specific pins specifically for analog pins.

If the user inputs 0-15, the appropriate analog pin number is substituted. For example, if '11' is passed in as board.analog.pin, A11 is is substituted in before the lookup call.

Parameters:

VAL INT board.analog.pin The board pin to be mapped to an AVR pin.

Returns:

INT The AVR pin connected to the given board pin.

boardmap.module:215Function board.to.serial.port

INT INLINE FUNCTION board.to.serial.port (VAL INT board.pin)

ArduPiloMega specific conversion function for finding chip-specific pins specifically for serial operations.

Each serial read/transmit pair is organized into a single 'port' for use with /arch/common/usart.moduel. RX2 and TX2 are pins 17 and 16, but they -- being part of the same port -- are both mapped to '2'.

Parameters:

VAL INT board.pin The board pin to be mapped to a serial port.

Returns:

INT The serial port corresponding to the given board pin.