Module boardmap.arduionmega - Occam header for Arduino Mega specific pin mappings

Occam header for Arduino Mega specific pin mappings.

Index

Declarations

boardmap.module:80Constant A0

VAL INT A0

Symbolic constant for accessing the first analog pin.

boardmap.module:99Constant 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:103Constant RX0

VAL INT RX0

Symbolic constant for accessing the first read port.

boardmap.module:105Constant TX0

VAL INT TX0

Symbolic constant for accessing the first transmit port.

boardmap.module:114Constant 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:119Constant 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:123Constant SDA

VAL INT SDA

Symbolic constant for accessing the Serial DAta register.

boardmap.module:125Constant SCL

VAL INT SCL

Symbolic constant for accessing the Serial CLock register.

boardmap.module:129Constant MISO

VAL INT MISO

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

boardmap.module:132Constant MOSI

VAL INT MOSI

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

boardmap.module:135Constant SCK

VAL INT SCK

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

boardmap.module:138Constant SS

VAL INT SS

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

boardmap.module:143Constant LED.PIN

VAL INT LED.PIN

Symbolic constant to signify a lack of on-board LED pin. Apparently, there is an LED pin on the Mega. Committed for further testing.

boardmap.module:174Function board.to.chip

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

Arduino Mega 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:187Function board.analog.to.chip

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

Arduino Mega 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:211Function board.to.serial.port

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

Arduino Mega 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.