This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how configurate packet size for nrf51822 in radio_config.c?

i need to send 32 bits packet , someone help me to configurate radio ( radio_config.c) to be able to transmit this number of bits .

Parents
  • Check if this thread helps

    The LFLEN is 4 bit long so you can achieve a maximum of 15 bit with it so if you set it to 0 and (i am not sure of this part) if you set STATLEN field to 4 bytes, then i guess it will fulfill your purpose. This is how it is done in radio transmit example. I think this should work

    #define PACKET_LENGTH_FIELD_SIZE  (0UL)   /**< Packet length field size in bits. */
    #define PACKET_STATIC_LENGTH        (4UL)                   //!< Packet static length in bytes
    
Reply
  • Check if this thread helps

    The LFLEN is 4 bit long so you can achieve a maximum of 15 bit with it so if you set it to 0 and (i am not sure of this part) if you set STATLEN field to 4 bytes, then i guess it will fulfill your purpose. This is how it is done in radio transmit example. I think this should work

    #define PACKET_LENGTH_FIELD_SIZE  (0UL)   /**< Packet length field size in bits. */
    #define PACKET_STATIC_LENGTH        (4UL)                   //!< Packet static length in bytes
    
Children
No Data
Related