Classes | Typedefs | Enumerations | Functions
ble_lcp.h File Reference

LCP SDK API. More...

Go to the source code of this file.

## Classes
struct | gdx_lcp_config_t
| LCP Parameter. More...

## Typedefs
typedef uint16_t(* | rx_handler_cb_t) (uint8_t header, uint8_t length, uint8_t *p_payload)
| RX handler callback function. More...

## Enumerations
enum | PROTOCOL_MODE { BLE_ADV, BLE_SCAN, LCP_TX, LCP_RX }
| Protocol Mode. More...

## Functions
uint16_t | gdx_lcp_init (gdx_lcp_config_t *gdx_lcp_config)
| Initialize LCP. More...
uint16_t | gdx_lcp_deinit (void)
| Deinitialize LCP. More...
uint16_t | gdx_lcp_tx_power_set (int8_t txpwr_dbm)
| Set the tx power of LCP. More...
uint16_t | gdx_lcp_tx_power_get (int8_t *txpwr_dbm)
| Get the tx power of LCP. More...
uint16_t | gdx_lcp_channel_set (uint32_t freq, uint8_t ch_idx)
| Set the channel of LCP. More...
uint16_t | gdx_lcp_channel_get (uint32_t *freq, uint8_t *ch_idx)
| Get the channel of LCP. More...
uint16_t | gdx_lcp_data_tx (uint8_t header, uint8_t length, uint8_t *p_payload)
| Transmmit a packet. More...
uint16_t | gdx_lcp_rx_start (void)
| Start receiving packets. More...
uint16_t | gdx_lcp_rx_stop (void)
| Stop receiving packets. More...

## Detailed Description

LCP SDK API.

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.

Definition in file ble_lcp.h.