Loading...
Searching...
No Matches
rn2xx3_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#include "rn2xx3.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
35void rn2xx3_hex_to_bytes(const char *hex, uint8_t *byte_array);
36
43void rn2xx3_set_internal_state(rn2xx3_t *dev, uint8_t state);
44
51
59void rn2xx3_cmd_append(rn2xx3_t *dev, const uint8_t *data, uint8_t data_len);
60
70
77
87
97
107
108#ifdef __cplusplus
109}
110#endif
111
High-level driver for the RN2483/RN2903 LoRa modules.
void rn2xx3_hex_to_bytes(const char *hex, uint8_t *byte_array)
Convert a string of hex to an array of bytes.
int rn2xx3_process_reply(rn2xx3_t *dev)
Process a command network reply.
void rn2xx3_cmd_start(rn2xx3_t *dev)
Starts writing a command with the content of the device command buffer.
int rn2xx3_cmd_finalize(rn2xx3_t *dev)
Finalize a command.
void rn2xx3_cmd_append(rn2xx3_t *dev, const uint8_t *data, uint8_t data_len)
Appends data to a command.
int rn2xx3_mac_tx_finalize(rn2xx3_t *dev)
Finalize the TX command.
void rn2xx3_set_internal_state(rn2xx3_t *dev, uint8_t state)
Sets internal device state.
int rn2xx3_process_response(rn2xx3_t *dev)
Process a command immediate response.
void rn2xx3_mac_tx_start(rn2xx3_t *dev)
Starts writing a tx command.
RN2483/RN2903 device descriptor.
Definition rn2xx3.h:164