LoRaWAN header types and helper functions.  
More...
LoRaWAN header types and helper functions. 
 | 
| file   | hdr.h | 
|   | LoRaWAN header type and helper function definitions. 
  | 
|   | 
◆ lorawan_hdr_get_ack()
Get LoRaWAN header ACK bit. 
- Parameters
 - 
  
  
 
- Returns
 - value of the ACK bit 
 
Definition at line 230 of file hdr.h.
 
 
◆ lorawan_hdr_get_adr()
Get LoRaWAN header Adaptive Data Rate bit. 
- Parameters
 - 
  
  
 
- Returns
 - the value of the ADR bit 
 
Definition at line 182 of file hdr.h.
 
 
◆ lorawan_hdr_get_adr_ack_req()
Get LoRaWAN header ADR ACK request bit. 
- Parameters
 - 
  
  
 
- Returns
 - the value of ADR ACK request bit 
 
Definition at line 206 of file hdr.h.
 
 
◆ lorawan_hdr_get_frame_opts_len()
  
  
      
        
          | static uint8_t lorawan_hdr_get_frame_opts_len  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Get LoRaWAN header FOps length. 
- Parameters
 - 
  
  
 
- Returns
 - length of piggybacked FOpts 
 
Definition at line 278 of file hdr.h.
 
 
◆ lorawan_hdr_get_frame_pending()
Get LoRaWAN header frame pending bit. 
- Parameters
 - 
  
  
 
- Returns
 - value of the frame pending bit 
 
Definition at line 254 of file hdr.h.
 
 
◆ lorawan_hdr_get_maj()
Get LoRaWAN major version. 
- Parameters
 - 
  
  
 
- Returns
 - major version of the packet 
 
Definition at line 158 of file hdr.h.
 
 
◆ lorawan_hdr_get_mtype()
Get LoRaWAN header MType. 
- Parameters
 - 
  
  
 
- Returns
 - mtype of the packet 
 
Definition at line 134 of file hdr.h.
 
 
◆ lorawan_hdr_set_ack()
  
  
      
        
          | static void lorawan_hdr_set_ack  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          bool  | 
          ack  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header ACK bit. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | ack | value of the ACK bit  | 
  
   
Definition at line 217 of file hdr.h.
 
 
◆ lorawan_hdr_set_adr()
  
  
      
        
          | static void lorawan_hdr_set_adr  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          bool  | 
          adr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header Adaptive Data Rate bit. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | adr | value of the ADR bit  | 
  
   
Definition at line 169 of file hdr.h.
 
 
◆ lorawan_hdr_set_adr_ack_req()
  
  
      
        
          | static void lorawan_hdr_set_adr_ack_req  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          bool  | 
          adr_ack_req  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header ADR ACK request bit. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | adr_ack_req | value of the ADR ACK request bit  | 
  
   
Definition at line 193 of file hdr.h.
 
 
◆ lorawan_hdr_set_frame_opts_len()
  
  
      
        
          | static void lorawan_hdr_set_frame_opts_len  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          uint8_t  | 
          len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header FOpts length. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | len | length of the piggybacked FOpts  | 
  
   
Definition at line 265 of file hdr.h.
 
 
◆ lorawan_hdr_set_frame_pending()
  
  
      
        
          | static void lorawan_hdr_set_frame_pending  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          bool  | 
          frame_pending  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header frame pending bit. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | frame_pending | value of the frame pending bit  | 
  
   
Definition at line 241 of file hdr.h.
 
 
◆ lorawan_hdr_set_maj()
  
  
      
        
          | static void lorawan_hdr_set_maj  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          uint8_t  | 
          maj  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN major version. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN header  | 
    | [in] | maj | major version  | 
  
   
Definition at line 145 of file hdr.h.
 
 
◆ lorawan_hdr_set_mtype()
  
  
      
        
          | static void lorawan_hdr_set_mtype  | 
          ( | 
          lorawan_hdr_t *  | 
          hdr,  | 
         
        
           | 
           | 
          uint8_t  | 
          mtype  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Set LoRaWAN header MType. 
- Parameters
 - 
  
    | [in] | hdr | LoRaWAN hdr  | 
    | [in] | mtype | desired MType  | 
  
   
Definition at line 121 of file hdr.h.
 
 
◆ lorawan_ja_hdr_get_optneg()
Get LoRaWAN join accept message OptNeg bit. 
- Parameters
 - 
  
    | [in] | ja_hdr | Join accept message header | 
  
   
- Returns
 - value of the OptNeg bit 
 
Definition at line 290 of file hdr.h.