Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

The PIB(Pan Information Base) attributes related to the TAL are Stored and handled by the TAL PIB storage.

Functions

 FLASH_DECLARE (int8_t tx_pwr_table[16])
 
static uint8_t limit_tx_pwr (uint8_t curr_transmit_power)
 Limit the phyTransmitPower to the trx limits. More...
 
retval_t tal_pib_get (uint8_t attribute, uint8_t *value)
 Gets a TAL PIB attribute. More...
 
retval_t tal_pib_set (uint8_t attribute, pib_value_t *value)
 Sets a TAL PIB attribute. More...
 

FLASH_DECLARE ( int8_t  tx_pwr_table[16])
static uint8_t limit_tx_pwr ( uint8_t  curr_transmit_power)
static

Limit the phyTransmitPower to the trx limits.

Parameters
phyTransmitPowerphyTransmitPower value
Returns
limited tal_pib_TransmitPower

References CONV_DBM_TO_phyTransmitPower, CONV_phyTransmitPower_TO_DBM, PGM_READ_BYTE, and TX_PWR_TOLERANCE.

Referenced by init_tal_pib(), and tal_pib_set().

retval_t tal_pib_get ( uint8_t  attribute,
uint8_t *  value 
)

Gets a TAL PIB attribute.

This function is called to retrieve the transceiver information base attributes.

Parameters
[in]attributeTAL infobase attribute ID
[out]valueTAL infobase attribute value
Returns
MAC_UNSUPPORTED_ATTRIBUTE if the TAL infobase attribute is not found MAC_SUCCESS otherwise

Referenced by per_mode_initiator_ed_end_cb(), per_mode_receptor_rx_cb(), perf_get_req(), set_channel(), set_channel_page(), set_parameter_on_transmitter_node(), set_paramter_on_recptor_node(), start_ed_scan(), and validate_tx_power().

retval_t tal_pib_set ( uint8_t  attribute,
pib_value_t *  value 
)

Sets a TAL PIB attribute.

This function is called to set the transceiver information base attributes.

Parameters
attributeTAL infobase attribute ID
valueTAL infobase attribute value to be set
Returns
  • MAC_UNSUPPORTED_ATTRIBUTE if the TAL info base attribute is not found
  • TAL_BUSY if the TAL is not in TAL_IDLE state. An exception is macBeaconTxTime which can be accepted by TAL even if TAL is not in TAL_IDLE state.
  • MAC_SUCCESS if the attempt to set the PIB attribute was successful
  • TAL_TRX_ASLEEP if trx is in SLEEP mode and access to trx is required

Referenced by config_per_test_parameters(), configure_pibs(), mlme_set(), peer_rsp_rcvd_exit(), peer_rsp_rcvd_init(), peer_search_initiator_init(), peer_search_receptor_init(), per_mode_initiator_ed_end_cb(), per_mode_initiator_init(), per_mode_receptor_init(), set_channel(), set_channel_page(), set_parameter_on_transmitter_node(), set_paramter_on_recptor_node(), set_tal_pib_internal(), set_tx_power(), and start_ed_scan().