/** \brief This function sends a command to the device. * * \param[in] count number of bytes to send * \param[in] command pointer to command buffer * \return status of the operation */ uint8_t sha204p_send_command(uint8_t count, uint8_t *command) { uint8_t ret_code = swi_send_byte(SHA204_SWI_FLAG_CMD); if (ret_code != SWI_FUNCTION_RETCODE_SUCCESS) return SHA204_COMM_FAIL; return swi_send_bytes(count, command); }
uint8_t atsha204Class::swi_send_byte(uint8_t value) { return swi_send_bytes(1, &value); }