rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
PinRepository Class Reference

#include <plain_pin_repository.h>

Collaboration diagram for PinRepository:
Collaboration graph
[legend]

Public Member Functions

 PinRepository ()
 
const char *& getBrainUsedPin (size_t idx)
 

Data Fields

const charPIN_USED [BRAIN_PIN_TOTAL_PINS]
 

Detailed Description

Definition at line 5 of file plain_pin_repository.h.

Constructor & Destructor Documentation

◆ PinRepository()

PinRepository::PinRepository ( )

Class constructors are a great way to have simple initialization sequence

Definition at line 100 of file pin_repository.cpp.

100 {
101#if EFI_PROD_CODE
102 msObjectInit(&portNameStream, (uint8_t*) portNameBuffer, sizeof(portNameBuffer), 0);
103#endif /* EFI_PROD_CODE */
104
105 memset(PIN_USED, 0, sizeof(PIN_USED));
106}
const char * PIN_USED[BRAIN_PIN_TOTAL_PINS]
static char portNameBuffer[20]
static MemoryStream portNameStream

Member Function Documentation

◆ getBrainUsedPin()

const char *& PinRepository::getBrainUsedPin ( size_t  idx)
inline

Definition at line 11 of file plain_pin_repository.h.

11 {
12 /*if (idx >= getBrainPinTotalNum())
13 return NULL;*/
14 return PIN_USED[idx];
15 }

Referenced by brain_pin_markUsed(), getBrainUsedPin(), and setPin().

Here is the caller graph for this function:

Field Documentation

◆ PIN_USED

const char* PinRepository::PIN_USED[BRAIN_PIN_TOTAL_PINS]

Definition at line 17 of file plain_pin_repository.h.

Referenced by getBrainUsedPin(), and PinRepository().


The documentation for this class was generated from the following files: