![]() |
RAFW Flexible Software Package Documentation
Release v2.0.1
|
|
Functions | |
| MATTERReturnCode_t | MATTER_On (void) |
| Turns on Matter. More... | |
| MATTERReturnCode_t | MATTER_Off (void) |
| Turns off Matter. More... | |
Interface for Matter functions.
The interface provides Matter functionality including resetting the device or generating an interrupt.
Data Structures | |
| struct | rm_matter_app_cfg_t |
| struct | matter_api_t |
| struct | rm_matter_app_instance_t |
Typedefs | |
| typedef void | matter_ctrl_t |
Enumerations | |
| enum | MATTERReturnCode_t |
| struct rm_matter_app_cfg_t |
User configuration structure, used in open function.
| Data Fields | ||
|---|---|---|
| spi_flash_instance_t const * | p_flash_instance | Pointer to flash(ospi) instance. |
| void const * | p_context | User defined context passed into callback function. |
| void const * | p_extend | Pointer to extended configuration by instance of interface. |
| struct matter_api_t |
Matter functions implemented at the HAL layer will follow this API.
Data Fields | |
| fsp_err_t(* | open )(matter_ctrl_t *const p_ctrl, rm_matter_app_cfg_t const *const p_cfg) |
| fsp_err_t(* | close )(matter_ctrl_t *const p_ctrl) |
| fsp_err_t(* matter_api_t::open) (matter_ctrl_t *const p_ctrl, rm_matter_app_cfg_t const *const p_cfg) |
Initialize the Matter service.
| [in] | p_ctrl | Pointer to Matter instance control structure. |
| [in] | p_cfg | Pointer to Matter configuration structure. |
| FSP_SUCCESS | Matter successfully configured. |
| FSP_ERR_ASSERTION | Null pointer, or one or more configuration options is invalid. |
| FSP_ERR_ALREADY_OPEN | Module is already open. This module can only be opened once. |
| fsp_err_t(* matter_api_t::close) (matter_ctrl_t *const p_ctrl) |
Closes the Matter service.
| [in] | p_ctrl | Pointer to Matter instance control structure. |
| FSP_SUCCESS | Matter successfully configured. |
| FSP_ERR_ASSERTION | Null pointer, or one or more configuration options is invalid. |
| FSP_ERR_ALREADY_OPEN | Module is already open. This module can only be opened once. |
| struct rm_matter_app_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
| Data Fields | ||
|---|---|---|
| matter_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
| rm_matter_app_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
| matter_api_t const * | p_api | Pointer to the API structure for this instance. |
| typedef void matter_ctrl_t |
Matter control block. Allocate an instance specific control block to pass into the Matter API calls.
| enum MATTERReturnCode_t |
| MATTERReturnCode_t MATTER_On | ( | void | ) |
Turns on Matter.
This function turns on the Matter module, initializes the drivers and must be called before calling any other Matter API
| MATTERReturnCode_t MATTER_Off | ( | void | ) |
Turns off Matter.
This function turns off the Matter module.