mirror of https://github.com/ARMmbed/mbed-os.git
Default constructor for template class should be part of header file
parent
cc7e16cefe
commit
0c950a6589
|
@ -24,13 +24,6 @@ namespace mbed {
|
||||||
|
|
||||||
/* Default values for different types of polynomials
|
/* Default values for different types of polynomials
|
||||||
*/
|
*/
|
||||||
template <uint32_t polynomial, uint8_t width>
|
|
||||||
MbedCRC<polynomial, width>::MbedCRC(uint32_t initial_xor, uint32_t final_xor, bool reflect_data, bool reflect_remainder):
|
|
||||||
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data), _reflect_remainder(reflect_remainder), _crc_table(NULL)
|
|
||||||
{
|
|
||||||
mbed_crc_ctor();
|
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
MbedCRC<POLY_32BIT_ANSI, 32>::MbedCRC(uint32_t initial_xor, uint32_t final_xor, bool reflect_data, bool reflect_remainder):
|
MbedCRC<POLY_32BIT_ANSI, 32>::MbedCRC(uint32_t initial_xor, uint32_t final_xor, bool reflect_data, bool reflect_remainder):
|
||||||
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data), _reflect_remainder(reflect_remainder),
|
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data), _reflect_remainder(reflect_remainder),
|
||||||
|
|
|
@ -124,7 +124,12 @@ public:
|
||||||
* polynomials with different intial/final/reflect values
|
* polynomials with different intial/final/reflect values
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
MbedCRC(uint32_t initial_xor, uint32_t final_xor, bool reflect_data, bool reflect_remainder);
|
MbedCRC(uint32_t initial_xor, uint32_t final_xor, bool reflect_data, bool reflect_remainder) :
|
||||||
|
_initial_value(initial_xor), _final_xor(final_xor), _reflect_data(reflect_data),
|
||||||
|
_reflect_remainder(reflect_remainder), _crc_table(NULL)
|
||||||
|
{
|
||||||
|
mbed_crc_ctor();
|
||||||
|
}
|
||||||
MbedCRC();
|
MbedCRC();
|
||||||
virtual ~MbedCRC()
|
virtual ~MbedCRC()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue