mirror of
https://github.com/SemvdH/OBD2-car-display.git
synced 2025-12-16 20:51:04 +00:00
add functions for bit setting and checking
This commit is contained in:
@@ -132,6 +132,23 @@ void obd2_elm327_check_connection(obd2_elm327_t *elm327);
|
||||
*/
|
||||
void obd2_elm327_get_state(obd2_elm327_t *elm327, char *state);
|
||||
|
||||
/**
|
||||
* @brief checks if a bit is set in the value_updates variable
|
||||
*
|
||||
* @returns 1 if the bit is set, 0 if not
|
||||
*/
|
||||
char obd2_el327_is_bit_set(obd2_elm327_t *elm327, uint16_t pos);
|
||||
|
||||
/**
|
||||
* @brief sets a bit in the value_updates variable
|
||||
*/
|
||||
void obd2_el327_set_bit(obd2_elm327_t *elm327, uint16_t pos);
|
||||
|
||||
/**
|
||||
* @brief clears a bit in the value_updates variable
|
||||
*/
|
||||
void obd2_el327_clear_bit(obd2_elm327_t *elm327, uint16_t pos);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user