10 #if FW_ENABLE_TEXT_LOGGING
32 this->m_read_InputPort[port].
init();
39 #if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_read_InputPort[port].setObjName(portName.
toChar());
56 this->m_write_InputPort[port].
init();
61 this->m_write_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1
67 this->m_objName.toChar(),
70 this->m_write_InputPort[port].setObjName(portName.
toChar());
80 this->m_writeRead_InputPort[port].
init();
85 this->m_writeRead_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1
91 this->m_objName.toChar(),
94 this->m_writeRead_InputPort[port].setObjName(portName.
toChar());
111 return &this->m_read_InputPort[portNum];
122 return &this->m_write_InputPort[portNum];
133 return &this->m_writeRead_InputPort[portNum];
142 Fw::PassiveComponentBase(compName)
286 this->m_guardedPortMutex.
lock();
292 this->m_guardedPortMutex.
unLock();
326 return compPtr->write_handlerBase(
344 return compPtr->writeRead_handlerBase(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
Auto-generated base for LinuxI2cDriver component.
FwIndexType getNum_write_InputPorts() const
Drv::I2cStatus read_handlerBase(FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer)
Handler base-class function for input port read.
Drv::InputI2cPort * get_read_InputPort(FwIndexType portNum)
Drv::InputI2cWriteReadPort * get_writeRead_InputPort(FwIndexType portNum)
LinuxI2cDriverComponentBase(const char *compName="")
Construct LinuxI2cDriverComponentBase object.
virtual void lock()
Lock the guarded mutex.
FwIndexType getNum_read_InputPorts() const
virtual Drv::I2cStatus writeRead_handler(FwIndexType portNum, U32 addr, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)=0
Handler for input port writeRead.
Drv::I2cStatus write_handlerBase(FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer)
Handler base-class function for input port write.
virtual void unLock()
Unlock the guarded mutex.
virtual Drv::I2cStatus write_handler(FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer)=0
Handler for input port write.
Drv::I2cStatus writeRead_handlerBase(FwIndexType portNum, U32 addr, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer)
Handler base-class function for input port writeRead.
Drv::InputI2cPort * get_write_InputPort(FwIndexType portNum)
virtual Drv::I2cStatus read_handler(FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer)=0
Handler for input port read.
FwIndexType getNum_writeRead_InputPorts() const
virtual ~LinuxI2cDriverComponentBase()
Destroy LinuxI2cDriverComponentBase object.
void init()
Object initializer.
const char * toChar() const
void format(const CHAR *formatString,...)
write formatted string to buffer
void unLock()
unlock the mutex and assert success
void lock()
lock the mutex and assert success