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
39extern "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
87err_t lr1110_hal_write( lriot_t *ctx, uint8_t* command, uint16_t command_length,
88 uint8_t* data_buf, uint16_t data_length );
89
110err_t lr1110_hal_read( lriot_t *ctx, uint8_t* command, uint16_t command_length,
111 uint8_t* data_buf, uint16_t data_length );
112
131err_t lr1110_hal_direct_read( lriot_t *ctx, uint8_t* data_buf, uint16_t data_length );
132
141
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif // LR1110_HAL_H
err_t lr1110_hal_direct_read(lriot_t *ctx, uint8_t *data_buf, uint16_t data_length)
Direct read from the SPI bus.
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.
err_t lr1110_hal_wakeup(lriot_t *ctx)
Wake the radio up.
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.
err_t lr1110_hal_reset(lriot_t *ctx)
Reset the radio.
This file contains API for LR IoT Click Driver.
LR IoT Click context object.
Definition lriot.h:273