SingingCat 0
application
sx126x_hal.h
Go to the documentation of this file.
1
32#ifndef SX126X_HAL_H
33#define SX126X_HAL_H
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/*
40 * -----------------------------------------------------------------------------
41 * --- DEPENDENCIES ------------------------------------------------------------
42 */
43
44#include <stdint.h>
45#include <stdbool.h>
46
47/*
48 * -----------------------------------------------------------------------------
49 * --- PUBLIC MACROS -----------------------------------------------------------
50 */
51
52/*
53 * -----------------------------------------------------------------------------
54 * --- PUBLIC CONSTANTS --------------------------------------------------------
55 */
56
57/*
58 * -----------------------------------------------------------------------------
59 * --- PUBLIC TYPES ------------------------------------------------------------
60 */
61
62typedef enum sx126x_hal_status_e {
63 SX126X_HAL_STATUS_OK = 0,
64 SX126X_HAL_STATUS_ERROR = 3,
65} sx126x_hal_status_t;
66
67/*
68 * -----------------------------------------------------------------------------
69 * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
70 */
71
85sx126x_hal_status_t sx126x_hal_write(struct network_context *nctx, const uint8_t *command, const uint16_t command_length, const uint8_t *data, const uint16_t data_length);
86
100sx126x_hal_status_t sx126x_hal_read(struct network_context *nctx, const uint8_t *command, const uint16_t command_length, uint8_t *data, const uint16_t data_length);
101
111sx126x_hal_status_t sx126x_hal_reset(struct network_context *nctx);
112
122sx126x_hal_status_t sx126x_hal_wakeup(struct network_context *nctx);
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif // SX126X_HAL_H
129
130/* --- EOF ------------------------------------------------------------------ */
sx126x_hal_status_t sx126x_hal_reset(struct network_context *nctx)
Definition: bus.c:102
sx126x_hal_status_t sx126x_hal_wakeup(struct network_context *nctx)
Definition: bus.c:112
sx126x_hal_status_t sx126x_hal_write(struct network_context *nctx, const uint8_t *command, const uint16_t command_length, const uint8_t *data, const uint16_t data_length)
Definition: bus.c:64
sx126x_hal_status_t sx126x_hal_read(struct network_context *nctx, const uint8_t *command, const uint16_t command_length, uint8_t *data, const uint16_t data_length)
Definition: bus.c:34