lriot
2.1.0.0
|
Hardware Abstraction Layer (HAL) interface for LR1110. More...
Go to the source code of this file.
Macros | |
#define | LR1110_NOP ( 0x00 ) |
Write this to SPI bus while reading data, or as a dummy/placeholder. More... | |
Functions | |
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. More... | |
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. More... | |
err_t | lr1110_hal_direct_read (lriot_t *ctx, uint8_t *data_buf, uint16_t data_length) |
Direct read from the SPI bus. More... | |
err_t | lr1110_hal_reset (lriot_t *ctx) |
Reset the radio. More... | |
err_t | lr1110_hal_wakeup (lriot_t *ctx) |
Wake the radio up. More... | |
Hardware Abstraction Layer (HAL) interface for LR1110.
The Clear BSD License Copyright Semtech Corporation 2021. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define LR1110_NOP ( 0x00 ) |
Write this to SPI bus while reading data, or as a dummy/placeholder.
err_t lr1110_hal_direct_read | ( | lriot_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | data_length | ||
) |
Direct read from the SPI bus.
[in] | ctx | Radio implementation parameters |
[out] | data_buf | Pointer to the buffer to be received |
[in] | data_length | Buffer size to be received |
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.
[in] | ctx | Radio implementation parameters |
[in] | command | Pointer to the buffer to be transmitted |
[in] | command_length | Buffer size to be transmitted |
[out] | data_buf | Pointer to the buffer to be received |
[in] | data_length | Buffer size to be received |
err_t lr1110_hal_reset | ( | lriot_t * | ctx | ) |
Reset the radio.
[in] | ctx | Radio implementation parameters |
err_t lr1110_hal_wakeup | ( | lriot_t * | ctx | ) |
Wake the radio up.
[in] | ctx | Radio implementation parameters |
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.
[in] | ctx | Radio implementation parameters |
[in] | command | Pointer to the buffer to be transmitted |
[in] | command_length | Buffer size to be transmitted |
[in] | data_buf | Pointer to the buffer to be transmitted |
[in] | data_length | Buffer size to be transmitted |