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

Function Documentation

◆ gdx_lcp_channel_get()

uint16_t gdx_lcp_channel_get ( uint32_t *  freq,
uint8_t *  ch_idx 
)

Get the channel of LCP.

Parameters
[in]freqThe value of the frequency, Range: 2360MHz to 2520MHz.
[in]ch_idxThe value of the channel index, Range: 0 to 39.
Return values
SDK_SUCCESSOperation is Success.
SDK_ERR_POINTER_NULLInvalid pointer supplied.

◆ gdx_lcp_channel_set()

uint16_t gdx_lcp_channel_set ( uint32_t  freq,
uint8_t  ch_idx 
)

Set the channel of LCP.

Parameters
[in]freqThe value of the frequency, Range: 2360MHz to 2520MHz.
[in]ch_idxThe value of the channel index, Range: 0 to 39.
Return values
SDK_SUCCESSOperation is Success.
SDK_ERR_INVALID_PARAMInvalid parameter supplied.

◆ gdx_lcp_data_tx()

uint16_t gdx_lcp_data_tx ( uint8_t  header,
uint8_t  length,
uint8_t *  p_payload 
)

Transmmit a packet.

Parameters
[in]headerThe header of the packet.
[in]lengthThe length of the packet payload.
[in]p_payloadThe pointer of the packet payload.
Return values
SDK_SUCCESSOperation is Success.
SDK_ERR_INVALID_PARAMInvalid parameter supplied.

◆ gdx_lcp_deinit()

uint16_t gdx_lcp_deinit ( void  )

Deinitialize LCP.

Return values
SDK_SUCCESSThe LCP is successfully Deinitialized.

◆ gdx_lcp_init()

uint16_t gdx_lcp_init ( gdx_lcp_config_t gdx_lcp_config)

Initialize LCP.

Parameters
[in]gdx_lcp_configConfigure the parameter of LCP, gdx_lcp_config_t.
Return values
SDK_SUCCESSThe LCP parameter is successfully configured.
SDK_ERR_POINTER_NULLInvalid pointer supplied.
SDK_ERR_INVALID_PARAMInvalid parameter supplied.

◆ gdx_lcp_rx_start()

uint16_t gdx_lcp_rx_start ( void  )

Start receiving packets.

Return values
SDK_SUCCESSOperation is Success.

◆ gdx_lcp_rx_stop()

uint16_t gdx_lcp_rx_stop ( void  )

Stop receiving packets.

Return values
SDK_SUCCESSOperation is Success.

◆ gdx_lcp_tx_power_get()

uint16_t gdx_lcp_tx_power_get ( int8_t *  txpwr_dbm)

Get the tx power of LCP.

Parameters
[in]txpwr_dbmThe value of the tx power, Range: -20dbm to 7dbm.
Return values
SDK_SUCCESSOperation is Success.
SDK_ERR_POINTER_NULLInvalid pointer supplied.

◆ gdx_lcp_tx_power_set()

uint16_t gdx_lcp_tx_power_set ( int8_t  txpwr_dbm)

Set the tx power of LCP.

Parameters
[in]txpwr_dbmThe value of the tx power, Range: -20dbm to 7dbm.
Return values
SDK_SUCCESSOperation is Success.
SDK_ERR_INVALID_PARAMInvalid parameter supplied.