Commit 5ca7b9b5 authored by Georg Auzinger's avatar Georg Auzinger
Browse files

added EncodeReg to BeBoardFWInterface that takes FEId as parameter

parent d631cf06
......@@ -101,6 +101,11 @@ void BeBoardFWInterface::EncodeReg( const CbcRegItem& pRegItem, uint8_t pCbcId,
pVecReq.push_back( ( pCbcId >> 3 ) << 21 | ( pCbcId & 7 ) << 17 | pRegItem.fPage << 16 | pRegItem.fAddress << 8 | pRegItem.fValue );
}
void BeBoardFWInterface::EncodeReg( const CbcRegItem& pRegItem, uint8_t pFeId, uint8_t pCbcId, std::vector<uint32_t>& pVecReq )
{
// (pCbcId & 7) restarts CbcIDs from 0 for FE 1 (if CbcID > 7)
pVecReq.push_back( pFeId >> 3 ) << 21 | pCbcId << 17 | pRegItem.fPage << 16 | pRegItem.fAddress << 8 | pRegItem.fValue );
}
void BeBoardFWInterface::DecodeReg( CbcRegItem& pRegItem, uint8_t pCbcId, uint32_t pWord )
{
......
......@@ -114,6 +114,13 @@ public:
*/
virtual void EncodeReg( const CbcRegItem& pRegItem, uint8_t pCbcId, std::vector<uint32_t>& pVecReq ); /*!< Encode a/several word(s) readable for a Cbc*/
/*!
* \brief Encode a/several word(s) readable for a Cbc
* \param pRegItem : RegItem containing infos (name, adress, value...) about the register to write
* \param pCbcId : Id of the Cbc to work with
* \param pVecReq : Vector to stack the encoded words
*/
virtual void EncodeReg( const CbcRegItem& pRegItem, uint8_t pFeId, uint8_t pCbcId, std::vector<uint32_t>& pVecReq ); /*!< Encode a/several word(s) readable for a Cbc*/
/*!
* \brief Decode a word from a read of a register of the Cbc
* \param pRegItem : RegItem containing infos (name, adress, value...) about the register to read
* \param pCbcId : Id of the Cbc to work with
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment