from typing import Iterable, List
from cdma import tx_baseband_cdma
def tx_cdma_bpsk_1(
bits: Iterable[bool],
sample_rate: int,
symbol_rate: int,
freq: float,
key: List[bool],
) -> List[float]:
return tx_bpsk(
tx_baseband_cdma(bits, key),
sample_rate,
symbol_rate * len(key),
freq,
)
def tx_cdma_bpsk_2(
bits: Iterable[bool],
sample_rate: int,
symbol_rate: int,
freq: float,
key: List[bool],
) -> List[float]:
return tx_bpsk(
tx_baseband_cdma(bits, key),
sample_rate,
symbol_rate,
freq,
)
def tx_cdma_bpsk_3(
bits: Iterable[bool],
sample_rate: int,
symbol_rate: int,
freq: float,
key: List[bool],
) -> List[float]:
return tx_bpsk(
tx_baseband_cdma(bits, key),
sample_rate,
symbol_rate / len(key),
freq,
)