Lora-net / sx126x_driver

Driver for SX126x radio
BSD 3-Clause Clear License
105 stars 31 forks source link

local return variables size at sx126x.c not matching datasheet #10

Open kfirbendic opened 3 months ago

kfirbendic commented 3 months ago

There seems to be a mismatch between the size of the local arrays that hold the return value at functions in sx1262.c and the actual return value as it is states in the datasheet https://semtech.my.salesforce.com/sfc/p/#E0000000JelG/a/2R000000Un70/ZHJLT5MqbYVJJZCeCYgXjCek0iAq88aBOmZOU6Vgskk some functions that I can point to are: sx126x_get_irq_status- the irq_local is 2 byte size although the spi transction return 4 bytes (RFU, status, IrqStatus(15:0)) sx126x_get_gfsk_pkt_status - pkt_status_local is 3 bytes, although the spi transction return 5 bytes sx126x_get_rssi_inst - rssi_local is 1 although the spi transction return 3 bytes

opeyrard commented 2 weeks ago

Hi, HAL functions used by drivers are removing status's bytes from the response. Best regards,