lriot  2.1.0.0
lr1110_hal.h
Go to the documentation of this file.
1 
35 #ifndef LR1110_HAL_H
36 #define LR1110_HAL_H
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /*
43  * -----------------------------------------------------------------------------
44  * --- DEPENDENCIES ------------------------------------------------------------
45  */
46 
47 #include <stdint.h>
48 #include <stdbool.h>
49 #include "lriot.h"
50 
51 /*
52  * -----------------------------------------------------------------------------
53  * --- PUBLIC MACROS -----------------------------------------------------------
54  */
55 
56 /*
57  * -----------------------------------------------------------------------------
58  * --- PUBLIC CONSTANTS --------------------------------------------------------
59  */
60 
64 #define LR1110_NOP ( 0x00 )
65 
66 /*
67  * -----------------------------------------------------------------------------
68  * --- PUBLIC TYPES ------------------------------------------------------------
69  */
70 
71 /*
72  * -----------------------------------------------------------------------------
73  * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
74  */
75 
87 err_t lr1110_hal_write( lriot_t *ctx, uint8_t* command, uint16_t command_length,
88  uint8_t* data_buf, uint16_t data_length );
89 
110 err_t lr1110_hal_read( lriot_t *ctx, uint8_t* command, uint16_t command_length,
111  uint8_t* data_buf, uint16_t data_length );
112 
131 err_t lr1110_hal_direct_read( lriot_t *ctx, uint8_t* data_buf, uint16_t data_length );
132 
140 err_t lr1110_hal_reset( lriot_t *ctx );
141 
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif // LR1110_HAL_H
lr1110_hal_reset
err_t lr1110_hal_reset(lriot_t *ctx)
Reset the radio.
lriot_t
LR IoT Click context object.
Definition: lriot.h:259
lriot.h
This file contains API for LR IoT Click Driver.
lr1110_hal_read
err_t lr1110_hal_read(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
Radio data transfer - read.
lr1110_hal_wakeup
err_t lr1110_hal_wakeup(lriot_t *ctx)
Wake the radio up.
lr1110_hal_direct_read
err_t lr1110_hal_direct_read(lriot_t *ctx, uint8_t *data_buf, uint16_t data_length)
Direct read from the SPI bus.
lr1110_hal_write
err_t lr1110_hal_write(lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length)
Radio data transfer - write.