Z
zrak
Guest
Ja sam učenje c ugrađen sistem za programiranje.Imam 5 pitanja listu ispod.Ja ću ga poštovati ako netko može objasniti neke od njih ili čak sve.Ili mi može netko preporučiti neki upućivanje to lean tih konvencija?
1. Što je to konvencija ovako: (kopirati iz Hi-tech c)
# ifndef _PIC_H
# define _PIC_H
posebno naglasila zagonetke mene puno.
2.što je znakove &, *, , @, i zagrada u (nepotpisani) znače u sljedećim (iz Hi-tech)
statički zalogaj LCD_RS @ ((nepotpisani) & PORTA * 8 2);
3.Što to znači izjava?(iz Hi-tech c)
# define LCD_STROBE ((LCD_EN = 1), (LCD_EN = 0))
4.Što je podvlačenje i <....> znači?(od sourceboost C)
# define _LCD_Read LCD_Read <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
5.tko može objasniti
_LCD_TEMPL I predložak
U dijelu programa kako slijedi: (od sourceboost C)
......
/ / Ove makronaredbi čine susequent kod više čitati, ali može izgledati malo zbunjujuće
# define _LCD_RawWriteNibble LCD_RawWriteNibble <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_RawWriteNibbleInline LCD_RawWriteNibbleInline <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_Read LCD_Read <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_WaitForNotBusy LCD_WaitForNotBusy <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_Write LCD_Write <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_FunctionMode LCD_FunctionMode <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_DataMode LCD_DataMode <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_RawWrite LCD_RawWrite <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_ClockOut LCD_ClockOut <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_TEMPL predložak <unsigned char InterfaceType, \
unsigned char UseBusy, \
dataport unsigned int, unsigned int Data_PortTris, \
CtrlPort unsigned int, unsigned int Ctrl_PortTris, \
unsigned char RS-a, unsigned char RW, unsigned char E>
_LCD_TEMPL
inline void LCD_FunctionMode (void)
(
volatile zalogaj RS (at) CtrlPort.RS = 0;
)
_LCD_TEMPL
inline void LCD_DataMode (void)
(
volatile zalogaj RS (at) CtrlPort.RS = 1;
)
......
1. Što je to konvencija ovako: (kopirati iz Hi-tech c)
# ifndef _PIC_H
# define _PIC_H
posebno naglasila zagonetke mene puno.
2.što je znakove &, *, , @, i zagrada u (nepotpisani) znače u sljedećim (iz Hi-tech)
statički zalogaj LCD_RS @ ((nepotpisani) & PORTA * 8 2);
3.Što to znači izjava?(iz Hi-tech c)
# define LCD_STROBE ((LCD_EN = 1), (LCD_EN = 0))
4.Što je podvlačenje i <....> znači?(od sourceboost C)
# define _LCD_Read LCD_Read <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
5.tko može objasniti
_LCD_TEMPL I predložak
U dijelu programa kako slijedi: (od sourceboost C)
......
/ / Ove makronaredbi čine susequent kod više čitati, ali može izgledati malo zbunjujuće
# define _LCD_RawWriteNibble LCD_RawWriteNibble <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_RawWriteNibbleInline LCD_RawWriteNibbleInline <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_Read LCD_Read <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_WaitForNotBusy LCD_WaitForNotBusy <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_Write LCD_Write <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_FunctionMode LCD_FunctionMode <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_DataMode LCD_DataMode <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_RawWrite LCD_RawWrite <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_ClockOut LCD_ClockOut <InterfaceType, UseBusy, DataPort, Data_PortTris, CtrlPort, Ctrl_PortTris, RS, RW, E>
# define _LCD_TEMPL predložak <unsigned char InterfaceType, \
unsigned char UseBusy, \
dataport unsigned int, unsigned int Data_PortTris, \
CtrlPort unsigned int, unsigned int Ctrl_PortTris, \
unsigned char RS-a, unsigned char RW, unsigned char E>
_LCD_TEMPL
inline void LCD_FunctionMode (void)
(
volatile zalogaj RS (at) CtrlPort.RS = 0;
)
_LCD_TEMPL
inline void LCD_DataMode (void)
(
volatile zalogaj RS (at) CtrlPort.RS = 1;
)
......