rn2xx3_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef RN2XX3_INTERNAL_H
20 #define RN2XX3_INTERNAL_H
21 
22 #include <stdint.h>
23 
24 #include "rn2xx3.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
39 void rn2xx3_hex_to_bytes(const char *hex, uint8_t *byte_array);
40 
47 void rn2xx3_set_internal_state(rn2xx3_t *dev, uint8_t state);
48 
54  void rn2xx3_cmd_start(rn2xx3_t *dev);
55 
63 void rn2xx3_cmd_append(rn2xx3_t *dev, const uint8_t *data, uint8_t data_len);
64 
74 
80  void rn2xx3_mac_tx_start(rn2xx3_t *dev);
81 
91 
101 
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* RN2XX3_INTERNAL_H */
117 
rn2xx3_cmd_finalize
int rn2xx3_cmd_finalize(rn2xx3_t *dev)
Finalize a command.
rn2xx3_process_response
int rn2xx3_process_response(rn2xx3_t *dev)
Process a command immediate response.
rn2xx3_process_reply
int rn2xx3_process_reply(rn2xx3_t *dev)
Process a command network reply.
rn2xx3_mac_tx_start
void rn2xx3_mac_tx_start(rn2xx3_t *dev)
Starts writing a tx command.
rn2xx3_mac_tx_finalize
int rn2xx3_mac_tx_finalize(rn2xx3_t *dev)
Finalize the TX command.
rn2xx3_set_internal_state
void rn2xx3_set_internal_state(rn2xx3_t *dev, uint8_t state)
Sets internal device state.
rn2xx3_t
RN2483/RN2903 device descriptor.
Definition: rn2xx3.h:148
rn2xx3_hex_to_bytes
void rn2xx3_hex_to_bytes(const char *hex, uint8_t *byte_array)
Convert a string of hex to an array of bytes.
rn2xx3_cmd_start
void rn2xx3_cmd_start(rn2xx3_t *dev)
Starts writing a command with the content of the device command buffer.
rn2xx3.h
High-level driver for the RN2483/RN2903 LoRa modules.
rn2xx3_cmd_append
void rn2xx3_cmd_append(rn2xx3_t *dev, const uint8_t *data, uint8_t data_len)
Appends data to a command.