FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    How to use the bit domain function in the C51 single-chip microcomputer

     

    Define such a structure: Typedef struct { Uchar dc0_ala: 1; // Power 0 alarm Uchar DC1_Ala: 1; // Power 1 Alarm Uchar ac_ala: 1; // power outage UCHAR UN_H_Ala: 1; // Frequency Channel Lost Lock Uchar un_l_ala: 1; // Expired channel machine lost lock Uchar far_ala: 1; // Remote communication fault alarm Uchar Open_ala: 1; // Door alarm Uchar x: 1; } Alarm; // system alarm structure definition Define variables and initialize: IDATA ALARM OLD_Alarm = {0, 0, 0, 0, 0, 0, 0, 0}; In the main () function, apply the bit field: IF (old_alarm.dc0_ala! = tdz_get.alarm.dc0_ala || Old_alarm.dc1_ala! = TDZ_GET.Alarm.dc1_ala || OLD_Alarm.Alarm! = TDZ_GET.Alarm.ac_ala | = TDZ_GET.Arm.un_a_ala || Old_alarm.un_l_ala! = tdz_get.alam.un_l_ala || = tdz_get.Alarm.far_ala || Old_Alarm.Open_ala! = TDZ_GET.Alarm.Open_Ala) { Old_alarm.dc0_ala = tdz_get.alam.dc0_ala; Old_Alarmm.dc1_ala = tdz_get.alarm.dc1_ala; Old_Alarm.ac_ala = tdz_get.alarm.ac_ala; Old_alarm.un_h_ala = tdz_get.alarm.un_h_ala; Old_Alarm.un_l_ala = tdz_get.alarm.un_l_ala; Old_Alarm.far_ala = tdz_get.alarm.far_ala; Old_alarm.open_ala = tdz_get.alarm.open_ala; ALA = 0; // Determine the alarm condition }, Read the full text

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us