Lines Matching refs:cmd_len
278 size_t cmd_len; in rylr_set_rf_parameters() local
295 cmd_len = sprintf(data->cmd_buffer, RYLR_CMD_RF_SETTINGS_FORMAT, datarate, in rylr_set_rf_parameters()
297 if (cmd_len != RYLR_CMD_RF_SETTINGS_LEN(datarate)) { in rylr_set_rf_parameters()
302 data->curr_cmd_len = cmd_len; in rylr_set_rf_parameters()
309 size_t cmd_len; in rylr_set_power() local
316 cmd_len = RYLR_CMD_POWER_LEN(power); in rylr_set_power()
317 if (sprintf(data->cmd_buffer, RYLR_CMD_POWER_FORMAT, power) != cmd_len) { in rylr_set_power()
322 data->curr_cmd_len = cmd_len; in rylr_set_power()
373 int cmd_len = RYLR_CMD_SEND_LENGTH(payload_len); in rylr_send() local
393 if (cmd_len > CONFIG_LORA_RYLRXX_CMD_BUF_SIZE) { in rylr_send()
399 snprintf(data->cmd_buffer, cmd_len + 1, RYLR_CMD_SEND_FORMAT, payload_len, payload); in rylr_send()
400 data->curr_cmd_len = cmd_len; in rylr_send()
417 int cmd_len; in rylr_send_async() local
439 cmd_len = RYLR_CMD_SEND_LENGTH(payload_len); in rylr_send_async()
440 if (cmd_len > CONFIG_LORA_RYLRXX_CMD_BUF_SIZE) { in rylr_send_async()
454 snprintf(data->cmd_buffer, cmd_len + 1, RYLR_CMD_SEND_FORMAT, payload_len, payload); in rylr_send_async()