lriot 2.1.0.0
lr1110_modem_hal.h
Go to the documentation of this file.
1
32#ifndef LR1110_MODEM_HAL_H
33#define LR1110_MODEM_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>
47#include "lriot.h"
48
49/*
50 * -----------------------------------------------------------------------------
51 * --- PUBLIC MACROS -----------------------------------------------------------
52 */
53
64
65/*
66 * ============================================================================
67 * API definitions to be implemented by the user
68 * ============================================================================
69 */
70
84err_t lr1110_modem_hal_write( lriot_t *ctx, uint8_t* command, uint16_t command_length,
85 uint8_t* data_buf, uint16_t data_length );
86
100err_t lr1110_modem_hal_read( lriot_t *ctx, uint8_t* command, uint16_t command_length,
101 uint8_t* data_buf, uint16_t data_length );
102
116err_t lr1110_modem_hal_write_read( lriot_t *ctx, uint8_t* command, uint8_t* data_buf, uint16_t data_length );
117
132err_t lr1110_modem_hal_write_without_rc( lriot_t *ctx, uint8_t* command, uint16_t command_length,
133 uint8_t* data_buf, uint16_t data_length );
134
145
156
157#ifdef __cplusplus
158}
159#endif
160
161#endif // LR1110_MODEM_HAL_H
modem driver common definition for LR1110
err_t lr1110_modem_hal_read(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
err_t lr1110_modem_hal_reset(lriot_t *ctx)
err_t lr1110_modem_hal_wakeup(lriot_t *ctx)
err_t lr1110_modem_hal_write_without_rc(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
lr1110_modem_hal_status_e
Status reported by the HAL layer.
Definition lr1110_modem_hal.h:58
@ LR1110_MODEM_HAL_STATUS_ERROR
Operation terminated with error.
Definition lr1110_modem_hal.h:60
@ LR1110_MODEM_HAL_STATUS_BAD_FRAME
Bad frame detected in the exchange.
Definition lr1110_modem_hal.h:61
@ LR1110_MODEM_HAL_STATUS_BUSY_TIMEOUT
Timeout occured while waiting for Busy line state.
Definition lr1110_modem_hal.h:62
@ LR1110_MODEM_HAL_STATUS_OK
Operation terminated successfully.
Definition lr1110_modem_hal.h:59
err_t lr1110_modem_hal_write_read(lriot_t *ctx, uint8_t *command, uint8_t *data_buf, uint16_t data_length)
Radio data transfer - write & read in single operation.
err_t lr1110_modem_hal_write(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
enum lr1110_modem_hal_status_e lr1110_modem_hal_status_t
Status reported by the HAL layer.
This file contains API for LR IoT Click Driver.
LR IoT Click context object.
Definition lriot.h:273