|
caffeine-sal 0.1.17
Header-only polymorphic middleware services layer for the Caffeine Framework
|
Generic physical mapping for services. More...
#include <cfn_sal_types.h>
Data Fields | |
| void * | handle |
| void * | instance |
| uint32_t | type |
| void * | user_arg |
Generic physical mapping for services.
This structure serves as the foundational physical interface (PHY) for services that interact with HAL peripherals (e.g., I2C, SPI, UART). It is designed to be extensible by embedding it as the first member of a specialized PHY structure.
| void* cfn_sal_phy_t::handle |
Pointer to the HAL peripheral driver (e.g., cfn_hal_i2c_t *)
| void* cfn_sal_phy_t::instance |
Addressing info: I2C device address, SPI CS pin handle, etc.
| uint32_t cfn_sal_phy_t::type |
Peripheral type identifier (e.g., CFN_HAL_PERIPHERAL_TYPE_I2C)
| void* cfn_sal_phy_t::user_arg |
Optional custom argument for shared contexts or callbacks