openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
hpm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  t_ipmc_capabilities
 
struct  t_component
 

Macros

#define HPM_SUPPORTED_VERSION   0x00
 
#define FW_REV_MAJOR   1 /* Binary encoded */
 
#define FW_REV_MINOR   0 /* BCD encoded */
 
#define FW_REV_AUX_0   0
 
#define FW_REV_AUX_1   0
 
#define FW_REV_AUX_2   0
 
#define FW_REV_AUX_3   0
 
#define HPM_UPGRADE_TIMEOUT   10 /* in 5 seconds counts */
 
#define HPM_SELF_TEST_TIMEOUT   5 /* in 5 seconds counts */
 
#define HPM_ROLLBACK_TIMEOUT   10 /* in 5 seconds counts */
 
#define HPM_INACCESSIBILITY_TIMEOUT   10 /* in 5 seconds counts */
 
#define HPM_BLOCK_SIZE   64
 

Typedefs

typedef uint8_t(* t_hpm_upload_block) (uint8_t *block, uint16_t size)
 
typedef uint8_t(* t_hpm_finish_upload) (uint32_t image_size)
 
typedef uint8_t(* t_hpm_prepare_comp) (void)
 
typedef uint8_t(* t_hpm_get_upgrade_status) (void)
 
typedef uint8_t(* t_hpm_activate_firmware) (void)
 

Enumerations

enum  { HPM_BOOTLOADER_COMPONENT_ID = 0 , HPM_IPMC_COMPONENT_ID , HPM_PAYLOAD_COMPONENT_ID , HPM_MAX_COMPONENTS }
 

Functions

union __attribute__ ((__packed__))
 

Variables

 t_comp_properties
 

Macro Definition Documentation

◆ FW_REV_AUX_0

#define FW_REV_AUX_0   0

◆ FW_REV_AUX_1

#define FW_REV_AUX_1   0

◆ FW_REV_AUX_2

#define FW_REV_AUX_2   0

◆ FW_REV_AUX_3

#define FW_REV_AUX_3   0

◆ FW_REV_MAJOR

#define FW_REV_MAJOR   1 /* Binary encoded */

◆ FW_REV_MINOR

#define FW_REV_MINOR   0 /* BCD encoded */

◆ HPM_BLOCK_SIZE

#define HPM_BLOCK_SIZE   64

◆ HPM_INACCESSIBILITY_TIMEOUT

#define HPM_INACCESSIBILITY_TIMEOUT   10 /* in 5 seconds counts */

◆ HPM_ROLLBACK_TIMEOUT

#define HPM_ROLLBACK_TIMEOUT   10 /* in 5 seconds counts */

◆ HPM_SELF_TEST_TIMEOUT

#define HPM_SELF_TEST_TIMEOUT   5 /* in 5 seconds counts */

◆ HPM_SUPPORTED_VERSION

#define HPM_SUPPORTED_VERSION   0x00

◆ HPM_UPGRADE_TIMEOUT

#define HPM_UPGRADE_TIMEOUT   10 /* in 5 seconds counts */

Typedef Documentation

◆ t_hpm_activate_firmware

typedef uint8_t(* t_hpm_activate_firmware) (void)

◆ t_hpm_finish_upload

typedef uint8_t(* t_hpm_finish_upload) (uint32_t image_size)

◆ t_hpm_get_upgrade_status

typedef uint8_t(* t_hpm_get_upgrade_status) (void)

◆ t_hpm_prepare_comp

typedef uint8_t(* t_hpm_prepare_comp) (void)

◆ t_hpm_upload_block

typedef uint8_t(* t_hpm_upload_block) (uint8_t *block, uint16_t size)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HPM_BOOTLOADER_COMPONENT_ID 
HPM_IPMC_COMPONENT_ID 
HPM_PAYLOAD_COMPONENT_ID 
HPM_MAX_COMPONENTS 

Function Documentation

◆ __attribute__()

union __attribute__ ( (__packed__) )

Variable Documentation

◆ t_comp_properties

t_comp_properties