config word functions pass value now by reference and return returnvalue
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main This commit looks good
EIVE/eive-obsw/pipeline/head Build started...

This commit is contained in:
Jakob Meier
2023-08-11 16:15:56 +02:00
parent c3bca9bb54
commit d28ec2c31a
3 changed files with 61 additions and 30 deletions

View File

@ -51,16 +51,21 @@ class PdecConfig {
/**
* @brief Creates the first word of the PDEC configuration
*
* @return The created config word
* @param word The created word will be written to this pointer
*
* @return OK if successful, otherwise error return value
*
*/
uint32_t createFirstWord();
ReturnValue_t createFirstWord(uint32_t* word);
/**
* @brief Creates the second word of the PDEC configuration
*
* @return The created config word
* @param word The created word will be written to this pointer
*
* @return OK if successful, otherwise error return value
*/
uint32_t createSecondWord();
ReturnValue_t createSecondWord(uint32_t* word);
/**
* @brief Reads first config word from the config memory
@ -94,6 +99,8 @@ class PdecConfig {
// 0x200 / 4 = 0x80
static const uint32_t FRAME_HEADER_OFFSET = 0x80;
static const uint32_t OFFSET_FIRST_CONFIG_WORD = 0;
static const uint32_t OFFSET_SECOND_CONFIG_WORD = 1;
static const uint32_t MAP_ADDR_LUT_OFFSET = 0xA0;
static const uint32_t MAP_CLK_FREQ_OFFSET = 0x90;