From: Manfred Steiner Date: Thu, 15 Aug 2024 12:46:20 +0000 (+0200) Subject: Fix cc1101 rssi data type X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=3dc1f0838f6ff0256961462cbc7f3ad49bca0870;p=nano-x-base.git Fix cc1101 rssi data type --- diff --git a/software/nano-644/test_2024-07-23/src/units/cc1101.hpp b/software/nano-644/test_2024-07-23/src/units/cc1101.hpp index e067650..a861f09 100644 --- a/software/nano-644/test_2024-07-23/src/units/cc1101.hpp +++ b/software/nano-644/test_2024-07-23/src/units/cc1101.hpp @@ -13,7 +13,7 @@ class Cc1101 : public TestUnit { typedef enum { Test, Send, Receive } Cc1101Mode; typedef enum { _IDLE = 0, _RX = 1, _TX = 2, _FSTXON = 3, _CALIBRATE = 4, _SETTLING = 5, _RXFIFO_OVFL = 6, _TXFIFO_UNFL = 7 } StatusState_t; typedef struct { uint8_t fifoBytes:4; StatusState_t state:3; uint8_t chipNotReady:1; } Status_t; - typedef struct { uint8_t rssi:8; uint8_t lqi:7; uint8_t crcOk:1; } ReceivedPacketStatus_t; // CC1101 datasheet page 37 + typedef struct { int8_t rssi:8; uint8_t lqi:7; uint8_t crcOk:1; } ReceivedPacketStatus_t; // CC1101 datasheet page 37 union { struct { union {