Quantcast
Channel: Microchip Taiwan :: 論壇
Viewing full articles (4647 articles)
Browse article index
↧

Re: dsp33fj UART RX中斷後RESET [by Ryang]

$
0
0
16-bit PIC24/dsPIC® Device::dsp33fj UART RX中斷後RESET
可以的,一個結構型態或共用型態的宣告內,也可含有其它的共用型態或結構型態。

範例:
union FPvar
{
   
float FPNum;            //floating point access
   
struct
   
{
      
unsigned char Arg0;        //argument byte 0 access
      
unsigned char Arg1;        //argument byte 1 access
      
unsigned char Arg2;        //argument byte 2 access
      
unsigned char Exp;        //exponent byte access
   
} ByByte;
} 
Foo;
Foo.FPNum = 3.14159;
Exponent = Foo.ByByte.Exp - 0x7F;


UART_Status_Flag.bits.UART_RX_ReadStart
UART_Status 是共用資料結構
而 UART_RX_ReadStart 是位元結構的一個成員
↧

Viewing full articles (4647 articles)
Browse article index

Latest Images

Trending Articles



Latest Images