ezradio_api_lib.c File Reference

This file contains the common API library of the EZRadio and.

License

Copyright 2018 Silicon Laboratories Inc. www.silabs.com

SPDX-License-Identifier: Zlib

The licensor of this software is Silicon Laboratories Inc.

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition in file ezradio_api_lib.c .

#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include " em_gpio.h "
#include " gpiointerrupt.h "
#include " ustimer.h "
#include "ezradio_cmd.h"
#include "ezradio_prop.h"
#include " ezradio_comm.h "
#include " ezradio_hal.h "
#include " ezradio_api_lib.h "

Functions

void ezradio_change_state (uint8_t next_state1)
void ezradio_fifo_info (uint8_t fifo, ezradio_cmd_reply_t *ezradioReply)
void ezradio_fifo_info_fast_read (ezradio_cmd_reply_t *ezradioReply)
void ezradio_fifo_info_fast_reset (uint8_t fifo)
void ezradio_frr_a_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_frr_b_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_frr_c_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_frr_d_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply)
void ezradio_func_info (ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_chip_status (uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_chip_status_fast_clear (void)
void ezradio_get_chip_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_int_status (uint8_t ph_clr_pend, uint8_t modem_clr_pend, uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_int_status_fast_clear (void)
void ezradio_get_int_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_modem_status (uint8_t modem_clr_pend, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_modem_status_fast_clear (void)
void ezradio_get_modem_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_packet_info (uint8_t field_number_mask, uint16_t len, int16_t diff_len, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_ph_status (uint8_t ph_clr_pend, ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_ph_status_fast_clear (void)
void ezradio_get_ph_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply)
void ezradio_get_property (uint8_t group, uint8_t num_props, uint8_t start_prop, ezradio_cmd_reply_t *ezradioReply)
void ezradio_gpio_pin_cfg (uint8_t gpio0, uint8_t gpio1, uint8_t gpio2, uint8_t gpio3, uint8_t nirq, uint8_t sdo, uint8_t gen_config, ezradio_cmd_reply_t *ezradioReply)
void ezradio_gpio_pin_cfg_fast (ezradio_cmd_reply_t *ezradioReply)
void ezradio_nop (void)
void ezradio_part_info (ezradio_cmd_reply_t *ezradioReply)
void ezradio_power_up (uint8_t boot_options, uint8_t xtal_options, uint32_t xo_freq)
void ezradio_read_cmd_buff (ezradio_cmd_reply_t *ezradioReply)
void ezradio_read_rx_fifo (uint8_t numBytes, uint8_t *pRxData)
void ezradio_request_device_state (ezradio_cmd_reply_t *ezradioReply)
void ezradio_reset (void)
void ezradio_set_property (uint8_t group, uint8_t num_props, uint8_t start_prop,...)
void ezradio_start_rx (uint8_t channel, uint8_t condition, uint16_t rx_len, uint8_t next_state1, uint8_t next_state2, uint8_t next_state3)
void ezradio_start_rx_fast (void)
void ezradio_start_tx (uint8_t channel, uint8_t condition, uint16_t tx_len)
void ezradio_start_tx_fast (void)
void ezradio_write_tx_fifo (uint8_t numBytes, uint8_t *pTxData)