caffeine-sal 0.1.17
Header-only polymorphic middleware services layer for the Caffeine Framework
Loading...
Searching...
No Matches
Data Fields
cfn_sal_phy_t Struct Reference

Generic physical mapping for services. More...

#include <cfn_sal_types.h>

Data Fields

void * handle
 
void * instance
 
uint32_t type
 
void * user_arg
 

Detailed Description

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.

Field Documentation

◆ handle

void* cfn_sal_phy_t::handle

Pointer to the HAL peripheral driver (e.g., cfn_hal_i2c_t *)

◆ instance

void* cfn_sal_phy_t::instance

Addressing info: I2C device address, SPI CS pin handle, etc.

◆ type

uint32_t cfn_sal_phy_t::type

Peripheral type identifier (e.g., CFN_HAL_PERIPHERAL_TYPE_I2C)

◆ user_arg

void* cfn_sal_phy_t::user_arg

Optional custom argument for shared contexts or callbacks


The documentation for this struct was generated from the following file: