MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / at_client_get_first

Function at_client_get_first

components/net/at/src/at_client.c:700–712  ·  view source on GitHub ↗

* get first AT client object in the table. * * @return AT client object */

Source from the content-addressed store, hash-verified

698 * @return AT client object
699 */
700at_client_t at_client_get_first(void)
701{
702 at_client_t client = RT_NULL;
703
704 rt_base_t level = rt_hw_interrupt_disable();
705 if (!rt_slist_isempty(&g_at_client_list))
706 {
707 client = rt_slist_first_entry(&g_at_client_list, struct at_client, list);
708 }
709 rt_hw_interrupt_enable(level);
710
711 return client;
712}
713
714static const struct at_urc *get_urc_obj(at_client_t client)
715{

Callers 1

atFunction · 0.85

Calls 3

rt_slist_isemptyFunction · 0.85
rt_hw_interrupt_disableFunction · 0.50
rt_hw_interrupt_enableFunction · 0.50

Tested by

no test coverage detected