本帖最后由 daiqh 于 2012-10-26 22:05 编辑
有结构体:
struct cmd_pattern
{
unsigned int sign_start_high;
unsigned int sign_start_low;
unsigned int sign_end_high;
unsigned int sign_end_low;
unsigned int sign_start_high;
unsigned int sign_start_low;
unsigned int sign_end_high;
unsigned int sign_end_low;
unsigned int cmd_contant[2][7];
};
//////////////////////////////////////////////
//cmd_ram初始化
struct cmd_pattern cmd_ram=
{
9024,4512,540,24414,540,540,540,540,
{
{68,2,0x83,0x55,0x90,0x6F,0},
{68,2,0x83,0x55,0x90,0x6F,0}
}
};
///////////////////////////////////////////////
//IR_Encode函数定义
unsigned char IR_Encode(unsigned int (*p)[7])
{
....;
....;
}
/////////////////////////////////////////////////
//传递结构体中二维数组当中的第一行数组(一维数组)首地址
IR_Encode ( & ( cmd_ram . cmd_contant) ) ;
但不能过,请问哪里出错了? |