예제 #1
0
        //Dekodier und Verschluessel-Funktion aufrufen
        private void update()
        {
            String temp = sendAndReceive(decodeDataToSend(m_oPIC.getSFR()[0x05], m_oPIC.getSFR()[0x06], m_oPIC.getSFR()[0x85], m_oPIC.getSFR()[0x86]));

            if (temp != null)
            {
                encodeReceivedData(temp);
            }
        }
예제 #2
0
        //Ueberpruefen ob an Checkboxen von PortA gecheckt und werte dementsprechend in die Register schreiben
        public void portAChecked(object sender, EventArgs e)
        {
            m_oPIC.getSFR()[0x05] = m_oPIC.setBitAtPosition(m_oPIC.getSFR()[0x05], 0, cb_PortRa0.Checked);
            m_oPIC.getSFR()[0x05] = m_oPIC.setBitAtPosition(m_oPIC.getSFR()[0x05], 1, cb_PortRa1.Checked);
            m_oPIC.getSFR()[0x05] = m_oPIC.setBitAtPosition(m_oPIC.getSFR()[0x05], 2, cb_PortRa2.Checked);
            m_oPIC.getSFR()[0x05] = m_oPIC.setBitAtPosition(m_oPIC.getSFR()[0x05], 3, cb_PortRa3.Checked);
            m_oPIC.getSFR()[0x05] = m_oPIC.setBitAtPosition(m_oPIC.getSFR()[0x05], 4, cb_PortRa4.Checked);

            GUI_UPDATE();
        }