#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

typedef struct factory_info_mmc
{
    bool radio_ft;
    bool radio_coupling;
}PAX_FACTORY_INFO_MMC;

PAX_FACTORY_INFO_MMC factory_info_mmc;

    char temp1[10] = {0};
    char temp2[10] = {0};
    
int pax_read_factory_info_mmc(PAX_FACTORY_INFO_MMC *dev)
{
	PAX_FACTORY_INFO_MMC *info = (PAX_FACTORY_INFO_MMC *)malloc(4096);
	memcpy(info, "0123456789abcdef", 32);

#if 1
    memcpy(&temp1[0], &info->radio_ft, 10);
    memcpy(&temp2[0], &info->radio_coupling, 10);
    printf("pax_read_factory_info_mmc temp1 = %s, temp2 = %s\n", temp1, temp2);
#endif

	printf("pax_read_factory_info_mmc info->radio_ft = %d\n", info->radio_ft);
    printf("pax_read_factory_info_mmc info->radio_coupling = %d\n", info->radio_coupling);
	
	
	memcpy(dev, info, sizeof(PAX_FACTORY_INFO_MMC));
	
	printf("pax_read_factory_info_mmc dev->radio_ft = %d\n", dev->radio_ft);
    printf("pax_read_factory_info_mmc dev->radio_coupling = %d\n", dev->radio_coupling);

	free(info);
    return 0;
}

int main() {
	printf("我在编程中国学C语言\n\n");

	
	
	pax_read_factory_info_mmc(&factory_info_mmc);

	

	

    
	return 0;
}