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
36 extern "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 
58 {
64 
65 /*
66  * ============================================================================
67  * API definitions to be implemented by the user
68  * ============================================================================
69  */
70 
84 err_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 
100 err_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 
116 err_t lr1110_modem_hal_write_read( lriot_t *ctx, uint8_t* command, uint8_t* data_buf, uint16_t data_length );
117 
132 err_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
lr1110_modem_hal_reset
err_t lr1110_modem_hal_reset(lriot_t *ctx)
lr1110_modem_hal_write
err_t lr1110_modem_hal_write(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
lriot_t
LR IoT Click context object.
Definition: lriot.h:269
lr1110_modem_hal_status_e
lr1110_modem_hal_status_e
Status reported by the HAL layer.
Definition: lr1110_modem_hal.h:58
LR1110_MODEM_HAL_STATUS_OK
@ LR1110_MODEM_HAL_STATUS_OK
Operation terminated successfully.
Definition: lr1110_modem_hal.h:59
lriot.h
This file contains API for LR IoT Click Driver.
LR1110_MODEM_HAL_STATUS_BAD_FRAME
@ LR1110_MODEM_HAL_STATUS_BAD_FRAME
Bad frame detected in the exchange.
Definition: lr1110_modem_hal.h:61
lr1110_modem_hal_write_without_rc
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_ERROR
@ LR1110_MODEM_HAL_STATUS_ERROR
Operation terminated with error.
Definition: lr1110_modem_hal.h:60
lr1110_modem_hal_status_t
enum lr1110_modem_hal_status_e lr1110_modem_hal_status_t
Status reported by the HAL layer.
lr1110_modem_hal_read
err_t lr1110_modem_hal_read(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
lr1110_modem_hal_wakeup
err_t lr1110_modem_hal_wakeup(lriot_t *ctx)
lr1110_modem_common.h
modem driver common definition for LR1110
LR1110_MODEM_HAL_STATUS_BUSY_TIMEOUT
@ LR1110_MODEM_HAL_STATUS_BUSY_TIMEOUT
Timeout occured while waiting for Busy line state.
Definition: lr1110_modem_hal.h:62
lr1110_modem_hal_write_read
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.