15 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
16 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ> {
20 void setup()
override;
137 void play(
const Ts &...
x)
override {
140 this->
parent_->transmit_packet(data);
143 this->
parent_->transmit_packet(data);
Helper class to easily give an object a parent of type T.
CC1101Component * parent_
void play(const Ts &...x) override
void play(const Ts &...x) override
void set_packet_mode(bool value)
void set_max_dvga_gain(MaxDvgaGain value)
void set_whitening(bool value)
void set_carrier_sense_above_threshold(bool value)
void write_(Register reg)
void set_sync0(uint8_t value)
void set_freeze(Freeze value)
void set_rx_attenuation(RxAttenuation value)
InternalGPIOPin * gdo0_pin_
void set_symbol_rate(float value)
uint8_t strobe_(Command cmd)
void set_sync_mode(SyncMode value)
void set_fsk_deviation(float value)
void dump_config() override
float output_power_requested_
void set_msk_deviation(uint8_t value)
void set_carrier_sense_rel_thr(CarrierSenseRelThr value)
uint8_t pa_table_[PA_TABLE_SIZE]
void set_lna_priority(bool value)
float output_power_effective_
void set_output_power(float value)
void set_modulation_type(Modulation value)
void set_if_frequency(float value)
void set_frequency(float value)
void set_num_preamble(uint8_t value)
void set_hyst_level(HystLevel value)
void set_filter_bandwidth(float value)
void set_filter_length_fsk_msk(FilterLengthFskMsk value)
void set_crc_enable(bool value)
void set_carrier_sense_abs_thr(int8_t value)
void set_magn_target(MagnTarget value)
void set_channel_spacing(float value)
CC1101Error transmit_packet(const std::vector< uint8_t > &packet)
void set_gdo0_pin(InternalGPIOPin *pin)
void set_wait_time(WaitTime value)
void set_dc_blocking_filter(bool value)
void set_packet_length(uint8_t value)
void set_manchester(bool value)
std::vector< uint8_t > packet_
void set_channel(uint8_t value)
void set_filter_length_ask_ook(FilterLengthAskOok value)
void set_max_lna_gain(MaxLnaGain value)
Trigger< std::vector< uint8_t >, float, uint8_t > * packet_trigger_
void set_sync1(uint8_t value)
bool wait_for_state_(State target_state, uint32_t timeout_ms=100)
Trigger< std::vector< uint8_t >, float, uint8_t > * get_packet_trigger() const
void play(const Ts &...x) override
std::function< std::vector< uint8_t >(Ts...)> data_func_
const uint8_t * data_static_
void set_data_static(const uint8_t *data, size_t len)
void play(const Ts &...x) override
void set_data_template(std::function< std::vector< uint8_t >(Ts...)> func)
void play(const Ts &...x) override
The SPIDevice is what components using the SPI will create.