lriot 2.1.0.0
|
Hardware Abstraction Layer (HAL) interface for LR1110 modem. More...
Go to the source code of this file.
Typedefs | |
typedef enum lr1110_modem_hal_status_e | lr1110_modem_hal_status_t |
Status reported by the HAL layer. | |
Enumerations | |
enum | lr1110_modem_hal_status_e { LR1110_MODEM_HAL_STATUS_OK = 0x00 , LR1110_MODEM_HAL_STATUS_ERROR = 0x01 , LR1110_MODEM_HAL_STATUS_BAD_FRAME = 0x0F , LR1110_MODEM_HAL_STATUS_BUSY_TIMEOUT = 0xFF } |
Status reported by the HAL layer. More... | |
Functions | |
err_t | lr1110_modem_hal_write (lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length) |
err_t | lr1110_modem_hal_read (lriot_t *ctx, uint8_t *command, uint16_t command_length, uint8_t *data_buf, uint16_t data_length) |
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. | |
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) |
err_t | lr1110_modem_hal_reset (lriot_t *ctx) |
err_t | lr1110_modem_hal_wakeup (lriot_t *ctx) |
Hardware Abstraction Layer (HAL) interface for LR1110 modem.
Revised BSD License Copyright Semtech Corporation 2020. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
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.
typedef enum lr1110_modem_hal_status_e lr1110_modem_hal_status_t |
Status reported by the HAL layer.
Status reported by the HAL layer.
err_t lr1110_modem_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_modem_hal_reset | ( | lriot_t * | ctx | ) |
Reset the chip
[in] | ctx | Chip implementation parameters |
err_t lr1110_modem_hal_wakeup | ( | lriot_t * | ctx | ) |
Wake the chip up.
[in] | ctx | chip implementation parameters |
err_t lr1110_modem_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 |
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.
[in] | ctx | Radio implementation parameters |
[in] | command | Pointer to the buffer to be transmitted |
[out] | data_buf | Pointer to the buffer to be received |
[in] | data_length | Buffer size to be received |
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 ) |
Radio data transfer - write without wait the return code - this API is dedicated to the functions which reset the Modem-E
[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 |