/** * @file nbus_impl.h * * @brief Zakladna implementacia prikazov nBus protokolu. * */ #ifndef __NBUS_IMPL_H__ #define __NBUS_IMPL_H__ #include "nbus_cmd.h" #include "nbus_types.h" void setErrorResponse(nBus_TypeDef *nbus, uint8_t code); // nBusCommandType_t get_request_type(); #if MODULE_SLAVE == 1 void nbus_slave_unicastToSensorGet(nBus_TypeDef *nbus); void nbus_slave_unicastToModuleGet(nBus_TypeDef *nBus); void nbus_slave_unicastToSensorSet(nBus_TypeDef *nbus); void nbus_slave_unicastToModuleSet(nBus_TypeDef *nBus); void nbus_slave_broadcast(nBus_TypeDef *nBus, nBusCommandType_t request_type); void sensor_store_param(nBus_TypeDef *nbus, uint8_t sensor_index, uint8_t param_name); #endif #endif