1
0
forked from fsfw/fsfw

SerialBufferAdapter new setBuffer function

Serial Fixed Array List Adapter documentation adapted
SinglyLinkedList setEnd() function added
This commit is contained in:
2020-01-18 16:48:33 +01:00
parent c9e4c73bd2
commit 6fe0f45c27
4 changed files with 12 additions and 1 deletions

View File

@ -123,6 +123,11 @@ void SerialBufferAdapter<T>::setBuffer(uint8_t * buffer_, T bufferLength_) {
bufferLength = bufferLength_;
}
template<typename T>
void SerialBufferAdapter<T>::setBuffer(uint32_t * buffer_, T bufferLength_) {
buffer = reinterpret_cast<uint8_t *>(buffer_);
bufferLength = 4 * bufferLength_;
}
//forward Template declaration for linker
template class SerialBufferAdapter<uint8_t>;