Functions
Spreading Codes

Functions

const u8ca_code (u8 prn)
s8 get_chip (u8 *code, u32 chip_num)

Detailed Description

Pesudo-random numbers (PRNs) used in the Direct-Sequence Spread Spectrum modulation of GNSS signals.


Function Documentation

const u8* ca_code ( u8  prn)

Returns the C/A code PRN corresponding to a given PRN number. The 1023 chip PRN is packed one chip per bit into an array of 128 8-bit words. The final 1024th bit is zero for all PRNs.

Parameters:
prnPRN number.
Returns:
A pointer to an array containing the C/A code PRN corresponding to the PRN number prn, packed one bit per chip.

Definition at line 33 of file prns.c.

s8 get_chip ( u8 code,
u32  chip_num 
) [inline]

Definition at line 37 of file prns.c.



enu
Author(s): Mike Purvis
autogenerated on Sun Oct 5 2014 23:44:54