embedded/projects/osp-steval-mki109v2/sources/app/i2c_slavecomm_t.c
static void SH_Slave_init(void)
{
    memset(&SlaveRegMap, 0, sizeof(SlaveRegMap));
    SlaveRegMap.version0 = SH_VERSION0;
    SlaveRegMap.version1 = SH_VERSION1;
    SlaveRegMap.whoami   = SH_WHO_AM_I;

    SlaveRegMap.irq_cause = SH_MSG_IRQCAUSE_NEWMSG;
    SlaveRegMap.read_len = 11;
    SlaveRegMap.rd_mem[0] = SH_MSG_TYPE_ABS_ACCEL;
}
/****************************************************************************************************
 * @fn      SH_Slave_init
 *          Initialize the Sensor Hub I2C Slave register interface
 *
 ***************************************************************************************************/
@fn      SH_Slave_init
Initialize the Sensor Hub I2C Slave register interface
@fn SH_Slave_init Initialize the Sensor Hub I2C Slave register interface
static void SH_Slave_init(void)
{
    memset(&SlaveRegMap, 0, sizeof(SlaveRegMap));
    SlaveRegMap.version0 = SH_VERSION0;
    SlaveRegMap.version1 = SH_VERSION1;
    SlaveRegMap.whoami   = SH_WHO_AM_I;
    SlaveRegMap.irq_cause = SH_MSG_IRQCAUSE_NEWMSG;
    SlaveRegMap.read_len = 11;
    SlaveRegMap.rd_mem[0] = SH_MSG_TYPE_ABS_ACCEL;
}
static void SH_Slave_init ( void ) { memset ( & SlaveRegMap , 0 , sizeof ( SlaveRegMap ) ) ; SlaveRegMap . version0 = SH_VERSION0 ; SlaveRegMap . version1 = SH_VERSION1 ; SlaveRegMap . whoami = SH_WHO_AM_I ; SlaveRegMap . irq_cause = SH_MSG_IRQCAUSE_NEWMSG ; SlaveRegMap . read_len = 11 ; SlaveRegMap . rd_mem [ 0 ] = SH_MSG_TYPE_ABS_ACCEL ; }
@fn      SH_Slave_init
          Initialize the Sensor Hub I2C Slave register interface
@fn SH_Slave_init Initialize the Sensor Hub I2C Slave register interface