Microchip® Advanced Software Framework

ble_host_sdk/inc/platform.h File Reference

Functions

void configure_usart (void)
 [callback_funcs] More...
 
void configure_usart_callbacks (void)
 
void platform_ble_mode_select (uint8_t mode)
 
void * platform_create_timer (void(*timer_cb)(void *))
 
void platform_delete_timer (void *timer_handle)
 
void platform_gpio_set (gpio_pin_t pin, gpio_status_t status)
 
void platform_init (void)
 
void platform_mode_get (BM_MODE *mode)
 
void platform_mode_set (BM_MODE mode)
 
void platform_process_rxdata (uint8_t t_rx_data)
 
void platform_recv_async (uart_recv_async_cb_t recv_async_callback)
 
void platform_send_sync (uint8_t *data, uint32_t length)
 
void platform_sleep (uint32_t ms)
 
void platform_start_timer (void *timer_handle, uint32_t ms)
 
void platform_stop_timer (void *timer_handle)
 
bool platform_wakeup_pin_status (void)
 
void read_async_callback (uart_recv_async_cb_t recv_async_callback)
 
void read_data_async (void)
 
void send_user_data (void)
 
void uart_read_data (uint16_t *data)
 
void uart_write_sync (uint8_t *data, uint16_t length)
 
void usart_read_callback (struct usart_module *const usart_module)
 [rx_buffer_var] More...
 

void configure_usart ( void  )

[callback_funcs]

[module_inst]

[setup]

[callback_funcs]

[setup]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_change_config]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_change_config]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

[setup_config]

[setup_config] [setup_config_defaults]

[setup_config_defaults]

[setup_change_config]

[setup_change_config]

[setup_set_config]

[setup_set_config]

[setup_enable]

[setup_enable]

References usart_config::baudrate, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, STATUS_OK, usart_enable(), usart_get_config_defaults(), usart_init(), and usart_instance.

Referenced by main(), test_standby_mode_dynamic_power_sleepwalking(), and test_standby_mode_static_power_sleepwalking().

void configure_usart_callbacks ( void  )

[setup_register_callbacks]

[setup_register_callbacks]

[setup_enable_callbacks]

[setup_enable_callbacks]

[setup_register_callbacks]

[setup_register_callbacks]

[setup_enable_callbacks]

[setup_enable_callbacks]

References USART_CALLBACK_BUFFER_RECEIVED, USART_CALLBACK_BUFFER_TRANSMITTED, usart_enable_callback(), usart_instance, usart_read_callback(), usart_register_callback(), and usart_write_callback().

Referenced by main().

void platform_ble_mode_select ( uint8_t  mode)

References BM_MODE_Init(), and BM_MODE_Set().

void* platform_create_timer ( void(*)(void *)  timer_cb)

Referenced by ble_init().

void platform_delete_timer ( void *  timer_handle)

Referenced by ble_init().

void platform_gpio_set ( gpio_pin_t  pin,
gpio_status_t  status 
)

References BM7X_PIN_MODE, BM7X_PIN_RESET, BM7X_PIN_RX_IND, and GPIO_HIGH.

Referenced by ble_init(), and main().

void platform_init ( void  )
void platform_mode_get ( BM_MODE mode)

References BM_MODE_Get().

void platform_mode_set ( BM_MODE  mode)

References BM_MODE_Set().

void platform_process_rxdata ( uint8_t  t_rx_data)
void platform_recv_async ( uart_recv_async_cb_t  recv_async_callback)

References platform_start_rx(), and recv_async_cb.

Referenced by ble_init().

void platform_send_sync ( uint8_t *  data,
uint32_t  length 
)

Referenced by ble_init().

void platform_sleep ( uint32_t  ms)

Referenced by ble_init().

void platform_start_timer ( void *  timer_handle,
uint32_t  ms 
)

Referenced by ble_init().

void platform_stop_timer ( void *  timer_handle)

Referenced by ble_init().

bool platform_wakeup_pin_status ( void  )

Referenced by platform_send_sync().

void read_async_callback ( uart_recv_async_cb_t  recv_async_callback)
void read_data_async ( void  )

References rx_data, and uart_read_data().

Referenced by read_async_callback().

void send_user_data ( void  )
void uart_read_data ( uint16_t *  data)

References usart_instance, and usart_read_job().

Referenced by read_data_async().

void uart_write_sync ( uint8_t *  data,
uint16_t  length 
)
void usart_read_callback ( struct usart_module *const  usart_module)

[rx_buffer_var]

[callback_funcs]

References MAX_RX_BUFFER_LENGTH, rx_buffer, usart_instance, and usart_write_buffer_job().

Referenced by configure_usart_callbacks().