lriot 2.1.0.0
lr1110_regmem.h
Go to the documentation of this file.
1
35#ifndef LR1110_REGMEM_H
36#define LR1110_REGMEM_H
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42/*
43 * -----------------------------------------------------------------------------
44 * --- DEPENDENCIES ------------------------------------------------------------
45 */
46
47#include <stdint.h>
48#include "common/lr1110_types.h"
49#include "common/lr1110_hal.h"
50
51/*
52 * -----------------------------------------------------------------------------
53 * --- PUBLIC MACROS -----------------------------------------------------------
54 */
55
56/*
57 * -----------------------------------------------------------------------------
58 * --- PUBLIC CONSTANTS --------------------------------------------------------
59 */
60
61/*
62 * -----------------------------------------------------------------------------
63 * --- PUBLIC TYPES ------------------------------------------------------------
64 */
65
66/*
67 * -----------------------------------------------------------------------------
68 * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
69 */
70
86err_t lr1110_regmem_write_regmem32( lriot_t *ctx, uint32_t address, uint32_t* buffer, uint8_t length );
87
104err_t lr1110_regmem_read_regmem32( lriot_t *ctx, uint32_t address, uint32_t* buffer, uint8_t length );
105
120err_t lr1110_regmem_write_mem8( lriot_t *ctx, uint32_t address, uint8_t* buffer, uint8_t length );
121
138err_t lr1110_regmem_read_mem8( lriot_t *ctx, uint32_t address, uint8_t* buffer, uint8_t length );
139
151err_t lr1110_regmem_write_buffer8( lriot_t *ctx, uint8_t* buffer, uint8_t length );
152
166err_t lr1110_regmem_read_buffer8( lriot_t *ctx, uint8_t* buffer, uint8_t offset, uint8_t length );
167
178
189err_t lr1110_regmem_write_regmem32_mask( lriot_t *ctx, uint32_t address, uint32_t mask, uint32_t data_buf );
190
191#ifdef __cplusplus
192}
193#endif
194
195#endif // LR1110_REGMEM_H
196
197/* --- EOF ------------------------------------------------------------------ */
Hardware Abstraction Layer (HAL) interface for LR1110.
err_t lr1110_regmem_clear_rxbuffer(lriot_t *ctx)
Clear radio RX buffer.
err_t lr1110_regmem_write_mem8(lriot_t *ctx, uint32_t address, uint8_t *buffer, uint8_t length)
Write bytes into register memory space of LR1110.
err_t lr1110_regmem_read_regmem32(lriot_t *ctx, uint32_t address, uint32_t *buffer, uint8_t length)
Read words into register memory space of LR1110.
err_t lr1110_regmem_write_buffer8(lriot_t *ctx, uint8_t *buffer, uint8_t length)
Write bytes into radio TX buffer memory space of LR1110.
err_t lr1110_regmem_write_regmem32(lriot_t *ctx, uint32_t address, uint32_t *buffer, uint8_t length)
Write words into register memory space of LR1110.
err_t lr1110_regmem_write_regmem32_mask(lriot_t *ctx, uint32_t address, uint32_t mask, uint32_t data_buf)
Read-modify-write data at given register/memory address.
err_t lr1110_regmem_read_mem8(lriot_t *ctx, uint32_t address, uint8_t *buffer, uint8_t length)
Read bytes into register memory space of LR1110.
err_t lr1110_regmem_read_buffer8(lriot_t *ctx, uint8_t *buffer, uint8_t offset, uint8_t length)
Read bytes from radio RX buffer memory space of LR1110.
Type definitions for LR1110.
LR IoT Click context object.
Definition lriot.h:273