eBoard ①⑧⑨
Written for SIA 2017/2018
I2CInOut Struct Reference

[COPY&PASTE] This is the I2CInOut ghost struct :D More...

#include <eagle_I2CInOut.h>

Public Member Functions

 I2CInOut (SoccerBoard &, optVAL_t, optVAL_t, optVAL_t, optVAL_t)
 The constructor. More...
 
void write (void)
 this will write values stored in B and C More...
 

Public Attributes

optVAL_t A
 storing value for A-pin ( I prevent errors!) More...
 
optVAL_t B
 storing value for B-pin [MOTOR DIR] More...
 
optVAL_t C
 storing value for C-pin [MOTOR SPE] More...
 

Detailed Description

[COPY&PASTE] This is the I2CInOut ghost struct :D

Author
EagleoutIce
Note
any assignment to Port A won't has anny effect!

[COPY&PASTE] You can use this class like this:

#include <eBoard.h>
//manual: '#include "/path/to/eBoard.h"'
//nothing in this brackets will have any effect :D
int main() {
io1.B = HIGH;
io1.C = 108;
io1.write();
}

Definition at line 97 of file eagle_I2CInOut.h.

Constructor & Destructor Documentation

◆ I2CInOut()

I2CInOut::I2CInOut ( SoccerBoard ,
optVAL_t  ,
optVAL_t  ,
optVAL_t  ,
optVAL_t   
)

The constructor.

Note
It does nothing! :D (well its initalizing pin values but.... nothing special^^)

Member Function Documentation

◆ write()

void I2CInOut::write ( void  )
inline

this will write values stored in B and C

Note
404 'A' not found :D

Member Data Documentation

◆ A

optVAL_t I2CInOut::A

storing value for A-pin ( I prevent errors!)

Definition at line 119 of file eagle_I2CInOut.h.

◆ B

optVAL_t I2CInOut::B

storing value for B-pin [MOTOR DIR]

Definition at line 122 of file eagle_I2CInOut.h.

◆ C

optVAL_t I2CInOut::C

storing value for C-pin [MOTOR SPE]

Definition at line 124 of file eagle_I2CInOut.h.


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