Lora-net/sx126x_driver

local return variables size at sx126x.c not matching datasheet

Opened this issue · 1 comments

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

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