section.h

Sifli Power management API.

Author

Sifli software development team

Defines

SECTION_LENGTH(section_name)

Macro for retrieving the length of a given section, in bytes.

参数:
  • section_name[in] Name of the section.

EXEC_REGION_SIZE(region_name)
SECTION_ITEM_GET(section_name, data_type, i)

Macro for retrieving a variable from a section.

警告

The stored symbol can only be resolved using this macro if the type of the data is word aligned. The operation of acquiring the stored symbol relies on the size of the stored type. No padding can exist in the named section in between individual stored items or this macro will fail.

参数:
  • section_name[in] Name of the section.

  • data_type[in] Data type of the variable.

  • i[in] Index of the variable in section.

SECTION_ITEM_COUNT(section_name, data_type)

Macro for getting the number of variables in a section.

参数:
  • section_name[in] Name of the section.

  • data_type[in] Data type of the variables in the section.

SECTION_ZIDATA_BEGIN(section_name)
SECTION_ZIDATA_END