Struct cc1101::Cc1101 [−][src]
pub struct Cc1101<SPI, CS>(_);
High level API for interacting with the CC1101 radio chip.
Methods
impl<SPI, CS, E> Cc1101<SPI, CS> where
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
CS: OutputPin,
[src]
impl<SPI, CS, E> Cc1101<SPI, CS> where
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
CS: OutputPin,
pub fn new(spi: SPI, cs: CS) -> Result<Self, Error<E>>
[src]
pub fn new(spi: SPI, cs: CS) -> Result<Self, Error<E>>
pub fn set_frequency(&mut self, hz: u64) -> Result<(), Error<E>>
[src]
pub fn set_frequency(&mut self, hz: u64) -> Result<(), Error<E>>
pub fn get_hw_info(&mut self) -> Result<(u8, u8), Error<E>>
[src]
pub fn get_hw_info(&mut self) -> Result<(u8, u8), Error<E>>
pub fn get_rssi_dbm(&mut self) -> Result<i16, Error<E>>
[src]
pub fn get_rssi_dbm(&mut self) -> Result<i16, Error<E>>
Received Signal Strength Indicator is an estimate of the signal power level in the chosen channel.
pub fn get_lqi(&mut self) -> Result<u8, Error<E>>
[src]
pub fn get_lqi(&mut self) -> Result<u8, Error<E>>
The Link Quality Indicator metric of the current quality of the received signal.
pub fn set_sync_mode(&mut self, sync_mode: SyncMode) -> Result<(), Error<E>>
[src]
pub fn set_sync_mode(&mut self, sync_mode: SyncMode) -> Result<(), Error<E>>
Configure the sync word to use, and at what level it should be verified.
pub fn set_modulation(&mut self, format: Modulation) -> Result<(), Error<E>>
[src]
pub fn set_modulation(&mut self, format: Modulation) -> Result<(), Error<E>>
Configure signal modulation.
pub fn set_address_filter(
&mut self,
filter: AddressFilter
) -> Result<(), Error<E>>
[src]
pub fn set_address_filter(
&mut self,
filter: AddressFilter
) -> Result<(), Error<E>>
Configure device address, and address filtering.
pub fn set_packet_length(
&mut self,
length: PacketLength
) -> Result<(), Error<E>>
[src]
pub fn set_packet_length(
&mut self,
length: PacketLength
) -> Result<(), Error<E>>
Configure packet mode, and length.
pub fn set_radio_mode(&mut self, radio_mode: RadioMode) -> Result<(), Error<E>>
[src]
pub fn set_radio_mode(&mut self, radio_mode: RadioMode) -> Result<(), Error<E>>
Set radio in Receive/Transmit/Idle mode.
pub fn set_defaults(&mut self) -> Result<(), Error<E>>
[src]
pub fn set_defaults(&mut self) -> Result<(), Error<E>>
Configure some default settings, to be removed in the future.
pub fn receive(&mut self, addr: &mut u8, buf: &mut [u8]) -> Result<u8, Error<E>>
[src]
pub fn receive(&mut self, addr: &mut u8, buf: &mut [u8]) -> Result<u8, Error<E>>