typedef struct
{
uchar DC0_ALA:1; //Power supply 0 alarm
uchar DC1_ALA:1; //Power supply 1 alarm
uchar AC_ALA:1; //Power failure alarm
uchar UN_H_ALA:1; //Same frequency channel machine unlock alarm
uchar UN_L_ALA:1; //Inter-frequency channel machine unlock alarm
uchar FAR_ALA:1; //Remote communication failure alarm
uchar OPEN_ALA:1; //Door placket alarm
uchar x:1;
}ALARM; //System alarm structure definition
This structure occupies one byte width, and its order is:
typedef struct
{
D0: uchar DC0_ALA:1; //Power supply 0 alarm
D1: uchar DC1_ALA:1; //Power supply 1 alarm
D2: uchar AC_ALA:1; //Power failure alarm
D3: uchar UN_H_ALA:1; //Same frequency channel machine unlock alarm
D4: uchar UN_L_ALA:1; //Inter-frequency channel machine unlock alarm
D5: uchar FAR_ALA:1; //Remote communication failure alarm
D6: uchar OPEN_ALA:1; //Door placket alarm
D7: uchar x:1;
}ALARM;//System alarm structure definition
do you understand?
Previous article:Solution to the problem of Keil c51 U3 character display misalignment
Next article:How to use bit field function in C51?
Recommended ReadingLatest update time:2024-11-16 03:28
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- How to read electrical control circuit diagrams (Classic best-selling books on electronics and electrical engineering) (Zheng Fengyi)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Getting started with BIT_BAND (bit segment/bit band) and alias area in STM32
- [Xianji HPM6750 Review] RT-Thread SPI Driver and WiFi Networking
- In-depth analysis of the design of a dental chair control system based on ARM embedded technology
- Lithium battery charging and charging protection circuit
- Temperature transmitter hardware framework and schematic diagram
- Testing solutions for redundant link networks
- Key wireless technologies for 5G systems
- [NXP Rapid IoT Review] + Rapid IoT App Running Error
- What is the principle of touch switch?
- What is jitter and phase noise?