short Read_HMC58831(void)
{
u8 res ;
short x=0,y=0,z=0;
float angle = 0;
res = HMC58831_Write_Byte(CONFIG_A_REG,0x14);
printf("res = %d\r\n",res);
HMC58831_Write_Byte(CONFIG_B_REG,0x20);
HMC58831_Write_Byte(CONFIG_C_REG,0x00);
delay_ms(5);
x = HMC58831_Read_Bybt(X_MSB_REG);
// z = HMC58831_Read_Bybt(Z_MSB_REG);
y = HMC58831_Read_Bybt(Y_MSB_REG);