查看SX126x的源代码
←
SX126x
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== 设置接口 === * set_standby() * set_regulator_mode() * set_dio3_as_tcxo_ctrl() * set_dio2_as_rfswitch_ctrl() * set_buffer_base_addr() ** opc = 0x8F, tx_addr, rx_addr * set_packet_type() ** opc = 0x8A, pkt_type ** pkt_type: 0x1 lora, 0x0 gfsk * set_rf_frequency() ** opc = 0x86, rf_freq[31:24], rf_freq[23:16], rf_freq[15:8], rf_freq[7:0] ** rf_freq = Freq * Ftcxo / 2^25 * set_modulation_params() ** opc = 0x8B, param1, param2, ... param4 ** param1: SF5 (0x05) ~ SF12 (0xC) ** param2: BW7 (0x0), BW10 (0x8), BW20 (0x9), BW125 (0x4), BW250 (0x5), BW500 (0x6) ** param3: CR4/5 (0x1) CR4/6 (0x2) ... ** param4: Low Data Rate Optimize, 0x0: off; 0x1: on * set_packet_params() ** opc = 0x8C, param1, param2 ... param9 ** param1: Preamble_Len[15:8] ** param2: Preamble_Len[7:0] ** param3: Header_Type, 0x0: explicit header ** param4: Payload_Len, 0 ~ 0xFF ** param5: CRC_Type, 0x0: off; 0x1: on ** param6: Invert_IQ, 0x0: standard; 0x1: Inverted * set_pa_config() ** opc = 0x95, duty_cycle, hp_max, dev_sel, pa_lut ** * set_tx_params() ** opc = 0x8E, power, ramp_time ** power: -9 (0xF7) ~ +22 (0x16) dBm ** ramp_time: TCXO: 200us (0x4); XTAL: 20us (0x1) * set_tx() ** opc = 0x83, timeout[23:16], timeout[15:8], timeout[7:0] ** timeout = 0: Timeout disable, Tx single mode, the device will stay in TX mode utile the the packet is transmitted and returns in STBY_RC mode upon completion ** timeout = others: Timeout active, the device remains in Tx mode it returns automatically to STBY_RC mode on timer end-of-count or when a packet has been transmitted. The maximum timeout is then 262s. ** A TIMEOUT IRQ is triggered if the TX_DONE IRQ is not generated within the given timeout period ** The chip goes back to STBY_RC mode after a TIMEOUT IRQ or a TX_DONE IRQ <br>
返回到
SX126x
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面