Functions | |
uint16_t | gdx_lcp_init (gdx_lcp_config_t *gdx_lcp_config) |
Initialize LCP. More... | |
void | gdx_lcp_deinit (void) |
Deinitialize LCP. More... | |
void | gdx_lcp_timer_binding (bool b_dual_timer, uint8_t timer_id) |
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_mhz) |
Set the channel of LCP. More... | |
uint16_t | gdx_lcp_channel_get (uint32_t *freq_mhz) |
Get the channel of LCP. More... | |
void | gdx_lcp_rx_window_size_set (uint32_t time_us) |
Set LCP rx windows size. More... | |
void | gdx_lcp_rx_oneshot_mode_set (bool enable) |
Rx oneshot mode enable or disable. More... | |
void | gdx_lcp_auto_txrx_mode_set (bool enable) |
Auto TXRX mode enable or disable. 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_whitening_seed_set (uint8_t whitening_seed) |
uint16_t | gdx_lcp_rx_stop (void) |
Stop receiving packets. More... | |
void | gdx_lcp_t2r_turn_around_time_adjust (uint8_t added_us) |
void | gdx_lcp_r2t_turn_around_time_adjust (uint8_t added_us) |
void gdx_lcp_auto_txrx_mode_set | ( | bool | enable | ) |
Auto TXRX mode enable or disable.
[in] | enable | enable auto txrx or disable txrx to sw tx rx. |
uint16_t gdx_lcp_channel_get | ( | uint32_t * | freq_mhz | ) |
Get the channel of LCP.
[in] | freq_mhz | The value of the frequency, Range: 2360MHz to 2520MHz. |
SDK_SUCCESS | Operation is Success. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
uint16_t gdx_lcp_channel_set | ( | uint32_t | freq_mhz | ) |
Set the channel of LCP.
[in] | freq_mhz | The value of the frequency, Range: 2360MHz to 2520MHz. 2M per step |
SDK_SUCCESS | Operation is Success. |
SDK_ERR_INVALID_PARAM | Invalid parameter supplied. |
uint16_t gdx_lcp_data_tx | ( | uint8_t | header, |
uint8_t | length, | ||
uint8_t * | p_payload | ||
) |
Transmmit a packet.
[in] | header | The header of the packet. |
[in] | length | The length of the packet payload. |
[in] | p_payload | The pointer of the packet payload. |
SDK_SUCCESS | Operation is Success. |
SDK_ERR_INVALID_PARAM | Invalid parameter supplied. |
void gdx_lcp_deinit | ( | void | ) |
Deinitialize LCP.
SDK_SUCCESS | The LCP is successfully Deinitialized. |
uint16_t gdx_lcp_init | ( | gdx_lcp_config_t * | gdx_lcp_config | ) |
Initialize LCP.
[in] | gdx_lcp_config | Configure the parameter of LCP, gdx_lcp_config_t. |
SDK_SUCCESS | The LCP parameter is successfully configured. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
SDK_ERR_INVALID_PARAM | Invalid parameter supplied. |
void gdx_lcp_r2t_turn_around_time_adjust | ( | uint8_t | added_us | ) |
void gdx_lcp_rx_oneshot_mode_set | ( | bool | enable | ) |
Rx oneshot mode enable or disable.
[in] | enable | enable oneshot or disable oneshot. |
uint16_t gdx_lcp_rx_start | ( | void | ) |
Start receiving packets.
SDK_SUCCESS | Operation is Success. |
uint16_t gdx_lcp_rx_stop | ( | void | ) |
Stop receiving packets.
SDK_SUCCESS | Operation is Success. |
void gdx_lcp_rx_window_size_set | ( | uint32_t | time_us | ) |
Set LCP rx windows size.
[in] | time_us | the windows size of rx. |
SDK_SUCCESS | Operation is Success. |
void gdx_lcp_t2r_turn_around_time_adjust | ( | uint8_t | added_us | ) |
void gdx_lcp_timer_binding | ( | bool | b_dual_timer, |
uint8_t | timer_id | ||
) |
uint16_t gdx_lcp_tx_power_get | ( | int8_t * | txpwr_dbm | ) |
Get the tx power of LCP.
[in] | txpwr_dbm | The value of the tx power, Range: -20dbm to 7dbm. |
SDK_SUCCESS | Operation is Success. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
uint16_t gdx_lcp_tx_power_set | ( | int8_t | txpwr_dbm | ) |
Set the tx power of LCP.
[in] | txpwr_dbm | The value of the tx power, Range: -20dbm to 7dbm. |
SDK_SUCCESS | Operation is Success. |
SDK_ERR_INVALID_PARAM | Invalid parameter supplied. |
uint16_t gdx_lcp_whitening_seed_set | ( | uint8_t | whitening_seed | ) |