Introduction - If you have any usage issues, please Google them yourself
AWGN-Rayleigh-BPSK-DSSS (BPSK direct sequence spread spectrum modulation and demodulation system source code (white noise and Rayleigh fading error rate comparison) and the procedure given BER curves