Speeduino
Loading...
Searching...
No Matches
Functions
pinMapping.cpp File Reference
#include "pinMapping.h"
#include "../../board_definition.h"
#include "../../preprocessor.h"
#include "../../unit_testing.h"

Functions

uint8_t pinTranslate (uint8_t rawPin)
 Translate between the pin list that appears in TS and the actual pin numbers.
 
uint8_t pinTranslateAnalog (uint8_t rawPin)
 Translate a pin number (0 - 22) to the relevant Ax (analog) pin reference.
 
static pinNumbers_t getV02ShieldMapping (void)
 
TESTABLE_STATIC pinNumbers_t getDefaultPinMapping (void)
 
static pinNumbers_t getV03ShieldMapping (void)
 
static pinNumbers_t getV04ShieldMapping (void)
 
static pinNumbers_t getMiataNB2Mapping (void)
 
static pinNumbers_t getMiataNA18Mapping (void)
 
static pinNumbers_t getMiataNA16Mapping (void)
 
static pinNumbers_t getTurtanasPcbPinMapping (void)
 
static pinNumbers_t getDazV6V01Mapping (void)
 
static pinNumbers_t getNO2CMapping (void)
 
static pinNumbers_t getUA4CMapping (void)
 
static pinNumbers_t getBlitzboxBL49spMapping (void)
 
pinNumbers_t getPinMapping (uint8_t boardID)
 Get the pin numbers for the relevant board, based on the boardID.
 

Function Documentation

◆ getBlitzboxBL49spMapping()

static pinNumbers_t getBlitzboxBL49spMapping ( void  )
static
Here is the caller graph for this function:

◆ getDazV6V01Mapping()

static pinNumbers_t getDazV6V01Mapping ( void  )
static
Here is the caller graph for this function:

◆ getDefaultPinMapping()

TESTABLE_STATIC pinNumbers_t getDefaultPinMapping ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMiataNA16Mapping()

static pinNumbers_t getMiataNA16Mapping ( void  )
static
Here is the caller graph for this function:

◆ getMiataNA18Mapping()

static pinNumbers_t getMiataNA18Mapping ( void  )
static
Here is the caller graph for this function:

◆ getMiataNB2Mapping()

static pinNumbers_t getMiataNB2Mapping ( void  )
static
Here is the caller graph for this function:

◆ getNO2CMapping()

static pinNumbers_t getNO2CMapping ( void  )
static
Here is the caller graph for this function:

◆ getPinMapping()

pinNumbers_t getPinMapping ( uint8_t  boardID)

Get the pin numbers for the relevant board, based on the boardID.

The boardID is set in the tuning SW and is used to allow the same firmware to be used across different hardware configurations with different pin layouts.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTurtanasPcbPinMapping()

static pinNumbers_t getTurtanasPcbPinMapping ( void  )
static
Here is the caller graph for this function:

◆ getUA4CMapping()

static pinNumbers_t getUA4CMapping ( void  )
static
Here is the caller graph for this function:

◆ getV02ShieldMapping()

static pinNumbers_t getV02ShieldMapping ( void  )
static
Here is the caller graph for this function:

◆ getV03ShieldMapping()

static pinNumbers_t getV03ShieldMapping ( void  )
static
Here is the caller graph for this function:

◆ getV04ShieldMapping()

static pinNumbers_t getV04ShieldMapping ( void  )
static
Here is the caller graph for this function:

◆ pinTranslate()

uint8_t pinTranslate ( uint8_t  rawPin)

Translate between the pin list that appears in TS and the actual pin numbers.

For the digital IO, this will simply return the same number as the rawPin value as those are mapped directly. For analog pins, it will translate them into the correct internal pin number.

Parameters
rawPinHigh level pin number
Returns
Translated / usable pin number
Here is the caller graph for this function:

◆ pinTranslateAnalog()

uint8_t pinTranslateAnalog ( uint8_t  rawPin)

Translate a pin number (0 - 22) to the relevant Ax (analog) pin reference.

This is required as some ARM chips do not have all analog pins in order (EG pin A15 != A14 + 1).

Parameters
rawPin
Returns
uint8_t
Here is the caller graph for this function: