Trying to decipher the following function.
I know pCfg
is a pointer of any type but I'm not sure what *(AppBIACfg_Type**)pCfg = &AppBIACfg;
is assigning to the address of &AppBIACfg
.
AD5940Err AppBIAGetCfg(void *pCfg)
{
if(pCfg){
*(AppBIACfg_Type**)pCfg = &AppBIACfg;
return AD5940ERR_OK;
}
return AD5940ERR_PARA;
}