mbgtools-lx
4.2.8
|
Data Structures | |
struct | MBG_LED_LIMITS |
General LED info to be read from a device. More... | |
struct | MBG_LED_SETTINGS |
Configuration settings for a single LED. More... | |
struct | MBG_LED_SETTINGS_IDX |
Configuration settings for a single LED, plus index. More... | |
struct | MBG_LED_INFO |
Current settings and general capabilities of an LED. More... | |
struct | MBG_LED_INFO_IDX |
Current settings and general capabilities of an LED, plus index. More... | |
Macros | |
#define | _mbg_swab_mbg_led_limits(_p) |
#define | MBG_LED_MODE_STRS |
Names of LED modes. More... | |
#define | MBG_LED_COLOR_STRS |
Names of LED colors. More... | |
#define | _mbg_swab_mbg_led_settings(_p) |
#define | _mbg_swab_mbg_led_settings_idx(_p) |
#define | _mbg_swab_mbg_led_info(_p) |
#define | _mbg_swab_mbg_led_info_idx(_p) |
Enumerations | |
enum | MBG_LED_MODES { MBG_LED_MODE_OFF, MBG_LED_MODE_ON, MBG_LED_MODE_FLASH, MBG_LED_MODE_FLASH_5S, N_MBG_LED_MODES } |
Possible modes of LEDs. More... | |
enum | MBG_LED_MODE_MASKS { MBG_LED_MODE_MASK_OFF = ( 1UL << MBG_LED_MODE_OFF ), MBG_LED_MODE_MASK_ON = ( 1UL << MBG_LED_MODE_ON ), MBG_LED_MODE_MASK_FLASH = ( 1UL << MBG_LED_MODE_FLASH ), MBG_LED_MODE_MASK_FLASH_5S = ( 1UL << MBG_LED_MODE_FLASH_5S ) } |
Bit masks associated with LED modes. More... | |
enum | MBG_LED_COLORS { MBG_LED_COLOR_GREEN, MBG_LED_COLOR_RED, MBG_LED_COLOR_YELLOW, MBG_LED_COLOR_BLUE, N_MBG_LED_COLORS } |
Possible colors of LEDs. More... | |
enum | MBG_LED_COLOR_MASKS { MBG_LED_COLOR_MASK_GREEN = ( 1UL << MBG_LED_COLOR_GREEN ), MBG_LED_COLOR_MASK_RED = ( 1UL << MBG_LED_COLOR_RED ), MBG_LED_COLOR_MASK_YELLOW = ( 1UL << MBG_LED_COLOR_YELLOW ), MBG_LED_COLOR_MASK_BLUE = ( 1UL << MBG_LED_COLOR_BLUE ) } |
Bit masks of possible LED colors. More... | |
Functions | |
int | mbgextio_get_led_limits (MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_LIMITS *p) |
Read the MBG_LED_LIMITS to check how many LEDs are provided. More... | |
int | mbgextio_get_led_info_idx (MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_INFO_IDX *p, uint16_t idx) |
Read the current settings and features of a particular LED. More... | |
int | mbgextio_get_led_settings_idx (MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, MBG_LED_SETTINGS_IDX *p, uint16_t idx) |
Read a MBG_LED_SETTINGS_IDX parameter structure from a device. More... | |
int | mbgextio_set_led_settings_idx (MBG_MSG_CTL *pmctl, const XBP_ADDR *p_addr, const MBG_LED_SETTINGS *p, uint16_t idx) |
Write a MBG_LED_SETTINGS parameter structure to a device. More... | |
#define _mbg_swab_mbg_led_info | ( | _p | ) |
#define _mbg_swab_mbg_led_info_idx | ( | _p | ) |
Definition at line 18943 of file gpsdefs.h.
Referenced by mbgextio_get_led_info_idx().
#define _mbg_swab_mbg_led_limits | ( | _p | ) |
Definition at line 18736 of file gpsdefs.h.
Referenced by mbgextio_get_led_limits().
#define _mbg_swab_mbg_led_settings | ( | _p | ) |
#define _mbg_swab_mbg_led_settings_idx | ( | _p | ) |
Definition at line 18890 of file gpsdefs.h.
Referenced by mbgextio_get_led_settings_idx(), and mbgextio_set_led_settings_idx().
#define MBG_LED_COLOR_STRS |
Names of LED colors.
Can be used to initialize a string array of N_MBG_LED_COLORS entries, so the number of strings must correspond to N_MBG_LED_COLORS.
#define MBG_LED_MODE_STRS |
Names of LED modes.
Can be used to initialize a string array of N_MBG_LED_MODES entries, so the number of strings must correspond to N_MBG_LED_MODES.
enum MBG_LED_COLOR_MASKS |
Bit masks of possible LED colors.
Used with MBG_LED_INFO::supp_colors
Enumerator | |
---|---|
MBG_LED_COLOR_MASK_GREEN | |
MBG_LED_COLOR_MASK_RED | |
MBG_LED_COLOR_MASK_YELLOW | |
MBG_LED_COLOR_MASK_BLUE |
enum MBG_LED_COLORS |
Possible colors of LEDs.
Used with MBG_LED_SETTINGS::color
Enumerator | |
---|---|
MBG_LED_COLOR_GREEN | |
MBG_LED_COLOR_RED | |
MBG_LED_COLOR_YELLOW | |
MBG_LED_COLOR_BLUE | |
N_MBG_LED_COLORS |
enum MBG_LED_MODE_MASKS |
Bit masks associated with LED modes.
Used with MBG_LED_INFO::supp_modes
Enumerator | |
---|---|
MBG_LED_MODE_MASK_OFF | see MBG_LED_MODE_OFF |
MBG_LED_MODE_MASK_ON | see MBG_LED_MODE_ON |
MBG_LED_MODE_MASK_FLASH | |
MBG_LED_MODE_MASK_FLASH_5S |
enum MBG_LED_MODES |
Possible modes of LEDs.
Used with MBG_LED_SETTINGS::mode
Enumerator | |
---|---|
MBG_LED_MODE_OFF | |
MBG_LED_MODE_ON | |
MBG_LED_MODE_FLASH | |
MBG_LED_MODE_FLASH_5S | |
N_MBG_LED_MODES |
int mbgextio_get_led_info_idx | ( | MBG_MSG_CTL * | pmctl, |
const XBP_ADDR * | p_addr, | ||
MBG_LED_INFO_IDX * | p, | ||
uint16_t | idx | ||
) |
Read the current settings and features of a particular LED.
mbgextio_dev_has_led_api should be used to check if this is supported
[in,out] | pmctl | Pointer to a valid message control structure |
[in] | p_addr | Pointer to an XBP address specifier, or NULL |
[out] | p | Pointer to the data structure to return the received data |
[in] | idx | Index of the array element to be retrieved, 0..MBG_LED_LIMITS::num_leds-1 |
Definition at line 13745 of file mbgextio.c.
References _mbg_swab_mbg_led_info_idx, GPS_LED_INFO_IDX, mbg_rc_is_success, and mbgextio_req_data_idx().
int mbgextio_get_led_limits | ( | MBG_MSG_CTL * | pmctl, |
const XBP_ADDR * | p_addr, | ||
MBG_LED_LIMITS * | p | ||
) |
Read the MBG_LED_LIMITS to check how many LEDs are provided.
mbgextio_dev_has_led_api should be used to check if this is supported
[in,out] | pmctl | Pointer to a valid message control structure |
[in] | p_addr | Pointer to an XBP address specifier, or NULL |
[out] | p | Pointer to the data structure to return the received data |
Definition at line 13711 of file mbgextio.c.
References _mbg_swab_mbg_led_limits, GPS_LED_LIMITS, mbg_rc_is_success, and mbgextio_req_data().
int mbgextio_get_led_settings_idx | ( | MBG_MSG_CTL * | pmctl, |
const XBP_ADDR * | p_addr, | ||
MBG_LED_SETTINGS_IDX * | p, | ||
uint16_t | idx | ||
) |
Read a MBG_LED_SETTINGS_IDX parameter structure from a device.
mbgextio_dev_has_led_api should be used to check if this is supported
[in,out] | pmctl | Pointer to a valid message control structure |
[in] | p_addr | Pointer to an XBP address specifier, or NULL |
[out] | p | Pointer to the data structure to return the received data |
[in] | idx | Index of the array element to be retrieved, 0..MBG_LED_LIMITS::num_leds-1 |
Definition at line 13779 of file mbgextio.c.
References _mbg_swab_mbg_led_settings_idx, GPS_LED_SETTINGS_IDX, mbg_rc_is_success, and mbgextio_req_data_idx().
int mbgextio_set_led_settings_idx | ( | MBG_MSG_CTL * | pmctl, |
const XBP_ADDR * | p_addr, | ||
const MBG_LED_SETTINGS * | p, | ||
uint16_t | idx | ||
) |
Write a MBG_LED_SETTINGS parameter structure to a device.
mbgextio_dev_has_led_api should be used to check if this is supported
[in,out] | pmctl | Pointer to a valid message control structure |
[in] | p_addr | Pointer to an XBP address specifier, or NULL |
[in] | p | Pointer to the data structure to be sent to the device |
[in] | idx | Index of the array element to be set, 0..MBG_LNE_LIMITS::num_ports-1 |
Definition at line 13812 of file mbgextio.c.
References _mbg_mutex_acquire, _mbg_swab_mbg_led_settings_idx, MBG_MSG_CTL_s::dev_mutex, GPS_LED_SETTINGS_IDX, MBG_LED_SETTINGS_IDX::idx, MSG_DATA::led_settings_idx, mbgextio_xmt_msg(), MBG_MSG_BUFF::msg_data, OPT_GPS_ACK_CODE, MBG_MSG_XMT_CTL::pmb, MBG_LED_SETTINGS_IDX::settings, MBG_MSG_BUFF::u, and MBG_MSG_CTL_s::xmt.