6#ifndef CAFFEINE_SAL_DEV_COMPOSITE_H
7#define CAFFEINE_SAL_DEV_COMPOSITE_H
44 if ((state == NULL) || (phy == NULL))
46 return CFN_HAL_ERROR_BAD_PARAM;
53 return CFN_HAL_ERROR_OK;
66 return CFN_HAL_ERROR_BAD_PARAM;
73 return CFN_HAL_ERROR_OK;
Core definitions and macros for Caffeine SAL.
CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_dev_composite_deinit(cfn_sal_dev_composite_shared_t *state)
Deinitialize the shared composite state.
Definition cfn_sal_dev_composite.h:62
CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_dev_composite_init(cfn_sal_dev_composite_shared_t *state, const cfn_sal_phy_t *phy)
Initialize the shared composite state.
Definition cfn_sal_dev_composite.h:41
Standardized shared state for composite (multi-function) sensors. This structure should be embedded w...
Definition cfn_sal_dev_composite.h:26
const cfn_sal_phy_t * phy
Definition cfn_sal_dev_composite.h:27
bool hw_initialized
Definition cfn_sal_dev_composite.h:29
uint8_t init_ref_count
Definition cfn_sal_dev_composite.h:28
Generic physical mapping for services.
Definition cfn_sal_types.h:26