virtual_wire_receiver

Virtual Wire receiver only version

Author Rob Jansen, Copyright © 2018..2018, all rights reserved.
Adapted-by
Compiler 2.4q6

Description

This is the receive only version of Virtual_Wire, see the file
             virtual_wire.jal for all changes compared to the original
             Virtual_Wire library and more information.


Sources

http://www.airspayce.com/mikem/arduino/VirtualWire.pdf


Notes

-


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions

Private

API details

Global variables/contants

Procedures

  • vw_rx_start()

    Enable the receiver. When a message becomes available, vw_rx_done flag
    is set, and vw_wait_rx() will return.
    

  • vw_setup(byte in bitrate)

    This procedure initialized the timer 0 that is used for creating the pulse
    time interrupt. This has to be VW_RX_SAMPLES_PER_BIT times the bit time.
    

  • vw_rx_stop()

    Disable the receiver
    

  • timer2_interrupt()

    This is the interrupt service routine called when timer1 overflows
    Its job is to output the next bit from the transmitter (every 8 calls)
    and to call the PLL code if the receiver is enabled
    

  • vw_wait_rx()

    Wait for the receiver to get a message
    Busy-wait loop until the ISR says a message is available
    can then call vw_get_message()
    

Private
  • _vw_pll()

    Called 8 times per bit period by the timer interrupt routine
    Phase locked loop tries to synchronise with the transmitter so that bit
    transitions occur at about the time vw_rx_pll_ramp is 0
    Then the average is computed over each bit period to deduce the bit value
    

  • _vw_timer_setup(byte in bitrate)

    Intialize Timer 2 to generate the RF bit time.
    


Functions

Private

Related samples

Here are the list of samples which use this library:

16f182516f1825_virtual_wire_receiver.jal